From c52f6c9f972e5ff4b373872b4a78f550e8503d69 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sun, 9 Sep 2018 01:25:32 +0200 Subject: [PATCH] Fixed a stupid error --- .gitignore | 2 ++ src/map_lua.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f64b1a7..d895019 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ *.swp *~ /steam_appid.txt +/*.so +/breakhack.run diff --git a/src/map_lua.c b/src/map_lua.c index 7cf4bf4..e812299 100644 --- a/src/map_lua.c +++ b/src/map_lua.c @@ -215,7 +215,7 @@ static Stats lua_checkstats(lua_State *L, int index) { // Confirm table - if (lua_istable(L, index)) { + if (!lua_istable(L, index)) { fatal("Bad table provided"); }