From 772096151f413f2833a0e5be9afa65bd9f06669b Mon Sep 17 00:00:00 2001 From: Kyzentun Keeslala Date: Wed, 7 Oct 2015 15:44:23 -0600 Subject: [PATCH] Made ActorFrame:SetDrawByZPosition return self to lua so function chaining works with it. --- src/ActorFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ActorFrame.cpp b/src/ActorFrame.cpp index 309c9be1fe..148d31f348 100644 --- a/src/ActorFrame.cpp +++ b/src/ActorFrame.cpp @@ -648,7 +648,7 @@ public: return 1; } static int GetNumChildren( T* p, lua_State *L ) { lua_pushnumber( L, p->GetNumChildren() ); return 1; } - static int SetDrawByZPosition( T* p, lua_State *L ) { p->SetDrawByZPosition( BArg(1) ); return 1; } + static int SetDrawByZPosition( T* p, lua_State *L ) { p->SetDrawByZPosition( BArg(1) ); COMMON_RETURN_SELF; } static int SetDrawFunction( T* p, lua_State *L ) { if(lua_isnil(L,1))