diff options
author | Matthew Hoops | 2014-08-14 21:56:33 -0400 |
---|---|---|
committer | Matthew Hoops | 2014-08-14 21:56:33 -0400 |
commit | bf210cccc02f77d6f393593e4dd8d513eb0408a8 (patch) | |
tree | 38d689f8a3ec2af8958f0137d28f5459a91262fc /engines/pegasus/interaction.h | |
parent | d2bf7f99fd20fbc0b6126e5c8ae6833d3491d030 (diff) | |
download | scummvm-rg350-bf210cccc02f77d6f393593e4dd8d513eb0408a8.tar.gz scummvm-rg350-bf210cccc02f77d6f393593e4dd8d513eb0408a8.tar.bz2 scummvm-rg350-bf210cccc02f77d6f393593e4dd8d513eb0408a8.zip |
PEGASUS: Fix bad cast that destroys the InputHandler vtable
Thanks to LordHoto for his assistance in tracking this nonsense down.
Diffstat (limited to 'engines/pegasus/interaction.h')
-rw-r--r-- | engines/pegasus/interaction.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/pegasus/interaction.h b/engines/pegasus/interaction.h index 293ee6be83..ca168b4cb7 100644 --- a/engines/pegasus/interaction.h +++ b/engines/pegasus/interaction.h @@ -37,11 +37,7 @@ class Neighborhood; class GameInteraction : public IDObject, public InputHandler { public: - GameInteraction(const InteractionID id, Neighborhood *nextHandler) : IDObject(id), InputHandler((InputHandler *)nextHandler) { - _isInteracting = false; - _savedHandler = 0; - _owner = nextHandler; - } + GameInteraction(const InteractionID id, Neighborhood *nextHandler); // If the interaction is open (_isInteracting == true), it's too late to do anything // about it here. |