diff options
author | Max Horn | 2011-05-25 16:42:16 +0200 |
---|---|---|
committer | Max Horn | 2011-05-25 16:42:16 +0200 |
commit | 587811d852713dfd14a23e48bedc06ae9d99a79b (patch) | |
tree | 36a443b4988d30919703d87b0a9736437667839e /engines/m4/rails.h | |
parent | 7e5113b4230d2186a85e2e5ef0920d9d7e753c6d (diff) | |
download | scummvm-rg350-587811d852713dfd14a23e48bedc06ae9d99a79b.tar.gz scummvm-rg350-587811d852713dfd14a23e48bedc06ae9d99a79b.tar.bz2 scummvm-rg350-587811d852713dfd14a23e48bedc06ae9d99a79b.zip |
M4: Attempt to fix the broken Rails code
I am not sure how this code could have ever worked without lots of
crashing, but maybe I am missing something... Still, casting an
arbitrary integer value to an int *pointer* and then later dereferencing
it does not seem like a good idea :).
Changed the code to do what I *guess* it was meant to do. But somebody
who actually knows M4 and its games should double check.
Diffstat (limited to 'engines/m4/rails.h')
-rw-r--r-- | engines/m4/rails.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/rails.h b/engines/m4/rails.h index ccc9e00536..80bb55e9de 100644 --- a/engines/m4/rails.h +++ b/engines/m4/rails.h @@ -73,7 +73,7 @@ public: private: Common::Array<RailNode *> _nodes; - Common::Array<int16 *> _edges; + Common::Array<int16> _edges; Common::List<NoWalkRect *> _noWalkRects; M4Surface *_walkCodes; |