Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GameScript: add a verbose error for last commit hack

  • Loading branch information...
commit 9f43cec2d539097273bcb2931de825fae543de2a 1 parent c5c2196
@bradallred bradallred authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  gemrb/core/GameScript/GameScript.cpp
View
2  gemrb/core/GameScript/GameScript.cpp
@@ -2276,6 +2276,8 @@ int Response::Execute(Scriptable* Sender)
if (canary == 0xdddddddd) {
// FIXME: hack to prevent crashing when a script deletes itself.
// this object has been deleted and this should not be considered a fix (it may cause unforseen problems too).
+ Log(ERROR, "GameScript", "Aborting response execution due to object deletion.\n \
+ This should not happen and we need to fix it.");
ret = 0;
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.