ref: e753d2f648f4cc6b03b4a53c279294e4643d2f82
parent: 6d8418b3549331b9c7fac258ae98815b02dad394
author: levesqu8 <levesqu8@msu.edu>
date: Mon Nov 20 19:40:13 EST 2017
fixed unhandled exception for resurrect time
--- a/rott/rt_actor.c
+++ b/rott/rt_actor.c
@@ -3627,7 +3627,7 @@
break;
#endif
default:
- Error("DeterminetimeUntilEnemyIsResurrected was given a case it couldn't handle");
+ return -1; //TODO: Return -1 for every entry that isn't any of the above
break;
}
@@ -3638,6 +3638,11 @@
void AddEnemyToResurrectList(objtype * ob)
{
ob->resurrectAtTime = DetermineTimeUntilEnemyIsResurrected(ob->obclass);
+ if (ob->resurrectAtTime == -1)
+ {
+ free(ob);
+ return;
+ }
SetReverseDeathState(ob);
switch(ob->obclass)
{