mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
Fix crash on exiting last state
This commit is contained in:
parent
8a7f33e815
commit
bad113588c
@ -100,7 +100,7 @@ struct StateManager
|
||||
// TODO: Resole states being leaked.
|
||||
states.back()->exit();
|
||||
states.pop_back();
|
||||
if(states.back()) {
|
||||
if(states.size() > 0) {
|
||||
states.back()->enter();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user