diff options
author | Torbjörn Andersson | 2013-05-27 06:48:23 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2013-05-27 06:48:23 +0200 |
commit | 2e4f64066da7c08edcd17b5c66c6463887b836b4 (patch) | |
tree | 63b6dfa996e93997c4fb69f79b323483b8bbeb4f /engines/neverhood/navigationscene.h | |
parent | 5e0e672283aa5c81e906fbe380ea17a35a5e983a (diff) | |
download | scummvm-rg350-2e4f64066da7c08edcd17b5c66c6463887b836b4.tar.gz scummvm-rg350-2e4f64066da7c08edcd17b5c66c6463887b836b4.tar.bz2 scummvm-rg350-2e4f64066da7c08edcd17b5c66c6463887b836b4.zip |
NEVERHOOD: Fix invalid memory access in navigation scenes
When a new Smacker is opened, the old Smacker surface is deleted
and a new one is created. Therefore, it has to be removed from the
scene and the new one has to be added.
Diffstat (limited to 'engines/neverhood/navigationscene.h')
-rw-r--r-- | engines/neverhood/navigationscene.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/neverhood/navigationscene.h b/engines/neverhood/navigationscene.h index ebe9a3597c..767b3f5d20 100644 --- a/engines/neverhood/navigationscene.h +++ b/engines/neverhood/navigationscene.h @@ -50,6 +50,7 @@ protected: bool _leaveSceneAfter; const byte *_itemsTypes; void update(); + void openSmacker(uint32 fileHash, bool keepLastFrame); uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); void createMouseCursor(); void handleNavigation(const NPoint &mousePos); |