Made PlayerState:GetCurrentPlayerOptions safe to use. Added Docs/Themerdocs/modslevel.txt to explain what ModsLevel should be used by a theme using the new PlayerOptions interface.
This commit is contained in:
+1
-2
@@ -252,8 +252,7 @@ public:
|
||||
}
|
||||
static int GetCurrentPlayerOptions( T* p, lua_State *L )
|
||||
{
|
||||
PlayerOptions po = p->m_PlayerOptions.GetCurrent();
|
||||
po.PushSelf(L);
|
||||
p->m_PlayerOptions.GetCurrent().PushSelf(L);
|
||||
return 1;
|
||||
}
|
||||
DEFINE_METHOD( GetHealthState, m_HealthState );
|
||||
|
||||
Reference in New Issue
Block a user