mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 22:44:32 +00:00
un-recurse a thing
This commit is contained in:
parent
fb3edf413d
commit
a3fb57fde9
1 changed files with 1 additions and 4 deletions
|
@ -218,11 +218,8 @@ void StateManager::pushState(const std::string &s)
|
||||||
|
|
||||||
void StateManager::popAllStates()
|
void StateManager::popAllStates()
|
||||||
{
|
{
|
||||||
if (!states_empty())
|
while (!states_empty())
|
||||||
{
|
|
||||||
popState();
|
popState();
|
||||||
popAllStates();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void StateManager::popState()
|
void StateManager::popState()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue