diff --git a/src/ScreenSelectMaster.cpp b/src/ScreenSelectMaster.cpp index 08d66a588c..1322b8f928 100644 --- a/src/ScreenSelectMaster.cpp +++ b/src/ScreenSelectMaster.cpp @@ -930,7 +930,7 @@ float ScreenSelectMaster::GetCursorY( PlayerNumber pn ) class LunaScreenSelectMaster: public Luna { public: - static int GetSelectionIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->GetSelectionIndexOfPlayer(Enum::Check(L, 1)) ); return 1; } + static int GetSelectionIndex( T* p, lua_State *L ) { lua_pushnumber( L, p->GetPlayerSelectionIndex(Enum::Check(L, 1)) ); return 1; } // should I even bother adding this? -aj // would have to make a public function to get this in ssmaster.h: // m_aGameCommands[i].m_sName diff --git a/src/ScreenSelectMaster.h b/src/ScreenSelectMaster.h index ce94e7bf69..b2f1e30cd1 100644 --- a/src/ScreenSelectMaster.h +++ b/src/ScreenSelectMaster.h @@ -40,7 +40,7 @@ public: virtual bool AllowLateJoin() const { return true; } // sm-ssc additions: - int GetSelectionIndexOfPlayer(PlayerNumber pn){ return GetSelectionIndex(pn); } + int GetPlayerSelectionIndex(PlayerNumber pn){ return GetSelectionIndex(pn); } // Lua virtual void PushSelf( lua_State *L );