From 45b1631e097d08fc6cb954881350f1b295df474d Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 1 May 2013 22:42:24 -0400 Subject: [PATCH] Another loop with deleting. ...unsure how maintained this file will be. --- src/LuaManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }