use PushSelf

This commit is contained in:
Glenn Maynard
2006-08-20 04:40:02 +00:00
parent 62a8cde182
commit dc79a12a17
+2 -2
View File
@@ -2030,8 +2030,8 @@ public:
}
static int GetCurrentStyle( T* p, lua_State *L )
{
// XXX: Ugly cast.
LuaHelpers::Push( const_cast<Style *>(p->GetCurrentStyle()), L );
Style *pStyle = const_cast<Style *> (p->GetCurrentStyle());
pStyle->PushSelf( L );
return 1;
}