mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
Make some getters const.
This commit is contained in:
parent
672f90e238
commit
9b4cd106d1
2 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@ void GameFlow::LoadGameFlowScript()
|
|||
SetErrorMode(GetSettings()->ErrorMode);
|
||||
}
|
||||
|
||||
char const * GameFlow::GetString(const char* id)
|
||||
char const * GameFlow::GetString(const char* id) const
|
||||
{
|
||||
if (!ScriptAssert(m_translationsMap.find(id) != m_translationsMap.end(), std::string{ "Couldn't find string " } + id))
|
||||
{
|
||||
|
@ -217,7 +217,7 @@ GameScriptLevel* GameFlow::GetLevel(int id)
|
|||
return Levels[id];
|
||||
}
|
||||
|
||||
int GameFlow::GetNumLevels()
|
||||
int GameFlow::GetNumLevels() const
|
||||
{
|
||||
return Levels.size();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue