diff --git a/src/LuaManager.cpp b/src/LuaManager.cpp index ec75f43507..b889d9bd3e 100644 --- a/src/LuaManager.cpp +++ b/src/LuaManager.cpp @@ -1054,8 +1054,8 @@ namespace lua_call( L, iArgs, LUA_MULTRET ); int iVals = lua_gettop(L); - FOREACH( LuaThreadVariable *, apVars, v ) - delete *v; + for (LuaThreadVariable *v : apVars) + delete v; return iVals; }