mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- made load game failure a bit more resilient
https://www.doomworld.com/forum/topic/111069-savestate-problems-with-gzdoom/
This commit is contained in:
parent
f2bacd5faf
commit
d4ac797602
2 changed files with 4 additions and 2 deletions
|
@ -1264,6 +1264,7 @@ void DStaticEventHandler::NewGame()
|
||||||
//
|
//
|
||||||
void DStaticEventHandler::OnDestroy()
|
void DStaticEventHandler::OnDestroy()
|
||||||
{
|
{
|
||||||
|
if (owner)
|
||||||
owner->UnregisterHandler(this);
|
owner->UnregisterHandler(this);
|
||||||
Super::OnDestroy();
|
Super::OnDestroy();
|
||||||
}
|
}
|
||||||
|
|
|
@ -355,6 +355,7 @@ int DInterpolation::DelRef(bool force)
|
||||||
|
|
||||||
void DInterpolation::UnlinkFromMap()
|
void DInterpolation::UnlinkFromMap()
|
||||||
{
|
{
|
||||||
|
if (Level)
|
||||||
Level->interpolator.RemoveInterpolation(this);
|
Level->interpolator.RemoveInterpolation(this);
|
||||||
refcount = 0;
|
refcount = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue