From 9e4da8650fcaae5781f7c3a85b78db453172bda5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 2 Oct 2006 22:53:32 +0000 Subject: [PATCH] simplify --- stepmania/src/Actor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index cedb633fa8..d23a728c2c 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -1245,9 +1245,8 @@ void Actor::PushContext( lua_State *L ) { // self.ctx should already exist m_pLuaInstance->PushSelf( L ); - lua_pushstring( L, "ctx" ); - lua_gettable( L, -2 ); - lua_replace( L, -2 ); + lua_getfield( L, -1, "ctx" ); + lua_remove( L, -2 ); } void Actor::SetParent( Actor *pParent )