From be758288e32cd0ffda2f8db9b4520233dadf8ff9 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sun, 13 Aug 2006 04:21:18 +0000 Subject: [PATCH] Fix VC8 warning. --- stepmania/src/LuaManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 78ccb3fce1..d33e8ccf69 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -154,7 +154,7 @@ static int LuaPanic( lua_State *L ) const char *name; vector vArgs; - for( int i = 1; i <= ar.nups && (name = lua_getupvalue(L, -1, i)); ++i ) + for( int i = 1; i <= ar.nups && (name = lua_getupvalue(L, -1, i)) != NULL; ++i ) { // XXX: do we need to do local variables for lua functions instead? vArgs.push_back( ssprintf("%s = %s", name, lua_tostring(L, -1)) );