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:
Kyzentun
2014-05-02 21:25:59 -06:00
parent 24f87d2e57
commit b6b840187d
2 changed files with 13 additions and 2 deletions
+1 -2
View File
@@ -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 );