diff options
author | Paul Gilbert | 2016-03-19 18:19:45 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-19 18:19:45 -0400 |
commit | 4704d72d6af60db97959c3d170a2ea524a0f0f1f (patch) | |
tree | 2b56e66d124be79d02743777f96914edf02bba75 /engines/titanic/game | |
parent | d86941f8c6b497f2d3d8409c2628af88bc600dae (diff) | |
download | scummvm-rg350-4704d72d6af60db97959c3d170a2ea524a0f0f1f.tar.gz scummvm-rg350-4704d72d6af60db97959c3d170a2ea524a0f0f1f.tar.bz2 scummvm-rg350-4704d72d6af60db97959c3d170a2ea524a0f0f1f.zip |
TITANIC: Implementing view item message handling
Diffstat (limited to 'engines/titanic/game')
-rw-r--r-- | engines/titanic/game/gondolier/gondolier_mixer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/game/gondolier/gondolier_mixer.cpp b/engines/titanic/game/gondolier/gondolier_mixer.cpp index b647a31ac2..3d0a0e1f19 100644 --- a/engines/titanic/game/gondolier/gondolier_mixer.cpp +++ b/engines/titanic/game/gondolier/gondolier_mixer.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/gondolier/gondolier_mixer.h" +#include "titanic/core/room_item.h" namespace Titanic { @@ -57,7 +58,7 @@ void CGondolierMixer::load(SimpleFile *file) { } bool CGondolierMixer::handleEvent(CEnterRoomMsg &msg) { - CTreeItem *parentRoom = getParent(); + CRoomItem *parentRoom = dynamic_cast<CRoomItem *>(getParent()); if (parentRoom == msg._newRoom) msg.execute(parentRoom); |