1
0
Fork 0
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:
fgenesis 2017-01-21 03:33:04 +01:00
parent fb3edf413d
commit a3fb57fde9

View file

@ -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()