mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-29 04:00:28 +01:00
Reset delegates on restart
This commit is contained in:
3 files changed
+22
No files matched your search
@@ -169,3 +169,17 @@ ScriptDelegate *ScriptDelegate::GetScriptDelegate(const char *name)
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void ScriptDelegate::Reset()
|
||||
{
|
||||
list_script.FreeObjectList();
|
||||
list_code.FreeObjectList();
|
||||
list_codeMember.FreeObjectList();
|
||||
}
|
||||
|
||||
void ScriptDelegate::ResetAllDelegates()
|
||||
{
|
||||
for (ScriptDelegate* delegate = root; delegate; delegate = delegate->next) {
|
||||
delegate->Reset();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user