From 112fbfd1993ba69515fb4bc819b138d15e0cca1c Mon Sep 17 00:00:00 2001 From: Kyzentun Date: Mon, 1 Dec 2014 17:00:18 -0700 Subject: [PATCH] Use lua_rawget instead of lua_gettable in ActorFrame::IdenticalChildrenIndexLayer to avoid self recursion on invalid number indices. --- src/ActorFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ActorFrame.cpp b/src/ActorFrame.cpp index a747ef73e4..d517f51c47 100644 --- a/src/ActorFrame.cpp +++ b/src/ActorFrame.cpp @@ -316,7 +316,7 @@ static int IdenticalChildrenIndexLayer(lua_State* L) { if(lua_isnumber(L, 2)) { - lua_gettable(L, 1); + lua_rawget(L, 1); } else {