ILLUSIONS: Terminate update functions on scene exit; fix bugs and use constants
This commit is contained in:
parent
8b48f2f63f
commit
601c6f4082
6 changed files with 16 additions and 18 deletions
|
@ -71,8 +71,7 @@ void UpdateFunctions::update() {
|
|||
}
|
||||
|
||||
void UpdateFunctions::terminateByScene(uint32 sceneId) {
|
||||
UpdateFunctionListIterator it = _updateFunctions.begin();
|
||||
while (it != _updateFunctions.end())
|
||||
for (UpdateFunctionListIterator it = _updateFunctions.begin(); it != _updateFunctions.end(); ++it)
|
||||
if ((*it)->_sceneId == sceneId)
|
||||
(*it)->terminate();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue