diff options
Diffstat (limited to 'sword2/function.cpp')
-rw-r--r-- | sword2/function.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp index 3c93df22f6..4f267f021a 100644 --- a/sword2/function.cpp +++ b/sword2/function.cpp @@ -2295,7 +2295,10 @@ int32 Logic::fnResetGlobals(int32 *params) { // switch on scrolling (2 means first time on screen) screenInfo->scroll_flag = 2; - return IR_CONT; + // Used to be IR_CONT, but that's a bad idea. We may just have killed + // our own script resource -- continuing will cause a bad memory read + // access. + return IR_STOP; } int32 Logic::fnSetPalette(int32 *params) { |