From 1e62be15ce97a59802019b9000ec412162f0f78a Mon Sep 17 00:00:00 2001 From: JTE Date: Wed, 20 May 2015 17:29:32 -0400 Subject: [PATCH] ALL7EMERALDS is a boolean you idiot, not an integer. --- src/lua_mathlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_mathlib.c b/src/lua_mathlib.c index f8b33ffd2..b01561574 100644 --- a/src/lua_mathlib.c +++ b/src/lua_mathlib.c @@ -156,7 +156,7 @@ static int lib_getsecspecial(lua_State *L) static int lib_all7emeralds(lua_State *L) { - lua_pushinteger(L, ALL7EMERALDS(luaL_checkinteger(L, 1))); + lua_pushboolean(L, ALL7EMERALDS(luaL_checkinteger(L, 1))); return 1; }