aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLittleboy2013-08-12 23:51:43 -0400
committerLittleboy2013-09-05 22:51:35 -0400
commita20bf7cb60bbe34f6eebfc7b613348345660612c (patch)
treece3fc65ea76d965f61b58531389446be1da92a67
parent9714cce46ff51036913214cb833f5396357529b5 (diff)
downloadscummvm-rg350-a20bf7cb60bbe34f6eebfc7b613348345660612c.tar.gz
scummvm-rg350-a20bf7cb60bbe34f6eebfc7b613348345660612c.tar.bz2
scummvm-rg350-a20bf7cb60bbe34f6eebfc7b613348345660612c.zip
LASTEXPRESS: Fix uninitialized scalar field (CID1002849)
-rw-r--r--engines/lastexpress/data/scene.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/lastexpress/data/scene.h b/engines/lastexpress/data/scene.h
index 69a1417459..b99e56a74c 100644
--- a/engines/lastexpress/data/scene.h
+++ b/engines/lastexpress/data/scene.h
@@ -83,6 +83,7 @@ class Scene;
class SceneHotspot {
public:
enum Action {
+ kActionNone = 0,
kActionInventory = 1,
kActionSavePoint = 2,
kActionPlaySound = 3,
@@ -152,8 +153,19 @@ public:
byte cursor;
uint32 next;
- SceneHotspot() {}
+ SceneHotspot() {
+ coordsOffset = 0;
+ scene = kSceneNone;
+ location = 0;
+ action = kActionNone;
+ param1 = 0;
+ param2 = 0;
+ param3 = 0;
+ cursor = 0;
+ next = 0;
+ }
~SceneHotspot();
+
static SceneHotspot *load(Common::SeekableReadStream *stream);
bool isInside(const Common::Point &point);