RTZ: crash when using original GUI to quit
|Reported by:||criezy||Owned by:||SF/mthreepwood|
|Cc:||Game:||Return to Zork|
Using the original GUI to quit Return to Zork crashes ScummVM. It works when using the GMM to either return to the launcher or quit ScummVM, but since load and save (currently) only work through the original GUI, I would expect quitting the game to also work.
It crashes on line 496 of script.cpp (in engine/made/) because the Object pointer is NULL. I don't know what the function ScriptInterpreter::cmd_objectp() is supposed to do if the Object pointer is Null. I tried several things. Changing line 496 to
if (obj != NULL && obj->isObject())
fixes the crash but I get a stack overflow warning. Everything else I have tried causes a segmentation fault.
I am using ScummVM 1.1.0svn r48146 on MacOS X 10.4 Intel.
Ticket imported from: #2960238. Ticket imported from: bugs/4785.