[Scummvm-cvs-logs] SF.net SVN: scummvm:[48407] scummvm/branches/branch-1-1-0/engines/lure/ hotspots.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Fri Mar 26 23:21:58 CET 2010
Revision: 48407
http://scummvm.svn.sourceforge.net/scummvm/?rev=48407&view=rev
Author: dreammaster
Date: 2010-03-26 22:21:56 +0000 (Fri, 26 Mar 2010)
Log Message:
-----------
Backport of 48406 - Adding initialisation of default NPC direction to fix Valgrind error
Modified Paths:
--------------
scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp
Modified: scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp
===================================================================
--- scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp 2010-03-26 22:16:45 UTC (rev 48406)
+++ scummvm/branches/branch-1-1-0/engines/lure/hotspots.cpp 2010-03-26 22:21:56 UTC (rev 48407)
@@ -50,6 +50,7 @@
_frames = NULL;
_numFrames = 0;
_persistant = false;
+ _direction = NO_DIRECTION;
_hotspotId = res->hotspotId;
_originalId = res->hotspotId;
@@ -109,6 +110,7 @@
_voiceCtr = 0;
_walkFlag = false;
_skipFlag = false;
+ _direction = NO_DIRECTION;
switch (objType) {
case VOICE_ANIM_IDX:
@@ -196,6 +198,7 @@
_frameWidth = _width;
_frameStartsUsed = false;
_tempDest.counter = 0;
+ _direction = NO_DIRECTION;
}
Hotspot::~Hotspot() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list