diff options
author | Paul Gilbert | 2011-05-06 19:19:25 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-05-06 19:19:25 +1000 |
commit | 80e23dd65370e8a821b090348435666bad9dbbe6 (patch) | |
tree | d85e114ec11953e48c3ca17d56f97aca08bce57e | |
parent | be3de84f7c9229cf4fb3381f24fff5b3f234e3ce (diff) | |
download | scummvm-rg350-80e23dd65370e8a821b090348435666bad9dbbe6.tar.gz scummvm-rg350-80e23dd65370e8a821b090348435666bad9dbbe6.tar.bz2 scummvm-rg350-80e23dd65370e8a821b090348435666bad9dbbe6.zip |
TSAGE: Initialise player fields to fix Valgrind warning
-rw-r--r-- | engines/tsage/core.cpp | 6 | ||||
-rw-r--r-- | engines/tsage/core.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index 86219a7908..28d6dbfb19 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -2622,6 +2622,12 @@ int Visage::getFrameCount() const { /*--------------------------------------------------------------------------*/ +Player::Player(): SceneObject() { + _canWalk = false; + _uiEnabled = false; + _field8C = 0; +} + void Player::postInit(SceneObjectList *OwnerList) { SceneObject::postInit(); diff --git a/engines/tsage/core.h b/engines/tsage/core.h index d1d3411e5a..a4a0ec208a 100644 --- a/engines/tsage/core.h +++ b/engines/tsage/core.h @@ -598,7 +598,7 @@ public: bool _uiEnabled; int _field8C; public: - Player() : SceneObject() {} + Player(); virtual Common::String getClassName() { return "Player"; } virtual void synchronize(Serializer &s); |