mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-26 14:27:14 +00:00
fixed crash (atleast it crashes for me on OSX) - can someone please verify if this is a proper fix (and doesn't break anything else?)
svn-id: r10851
This commit is contained in:
parent
3e68577bae
commit
e00848384a
@ -71,7 +71,7 @@ Cutaway::Cutaway(
|
||||
Logic *logic,
|
||||
Resource *resource)
|
||||
: _graphics(graphics), _logic(logic), _resource(resource), _walk(logic->walk()),
|
||||
_quit(false), _personFaceCount(0), _lastSong(0), _songBeforeComic(0) {
|
||||
_quit(false), _personFaceCount(0), _personDataCount(0), _lastSong(0), _songBeforeComic(0) {
|
||||
memset(&_bankNames, 0, sizeof(_bankNames));
|
||||
load(filename);
|
||||
}
|
||||
@ -632,6 +632,8 @@ void Cutaway::handlePersonRecord(
|
||||
|
||||
Person p;
|
||||
|
||||
_personFaceCount = 0; //Hello, please verify me. (Fixes crash on OSX)
|
||||
|
||||
if (object.objectNumber == OBJECT_JOE) {
|
||||
if (object.moveToX || object.moveToY) {
|
||||
_walk->joeMove(0, object.moveToX, object.moveToY, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user