aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-08-20 21:26:53 -0500
committerrichiesams2013-08-20 21:26:53 -0500
commitfa7fb2e029adec318cf963292b4b9b375189b487 (patch)
tree5887d565b0487e3e7737b0cb144f3c3bf9b03e61
parentac7b2251bb3cb41b10d2b69b3d3540895db057d8 (diff)
downloadscummvm-rg350-fa7fb2e029adec318cf963292b4b9b375189b487.tar.gz
scummvm-rg350-fa7fb2e029adec318cf963292b4b9b375189b487.tar.bz2
scummvm-rg350-fa7fb2e029adec318cf963292b4b9b375189b487.zip
ZVISION: Initialize Puzzle::key and Puzzle::flags
Some Puzzles don't have flags, which caused it to never be initialized
-rw-r--r--engines/zvision/puzzle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/puzzle.h b/engines/zvision/puzzle.h
index 371af83d91..512a9636b9 100644
--- a/engines/zvision/puzzle.h
+++ b/engines/zvision/puzzle.h
@@ -32,6 +32,8 @@
namespace ZVision {
struct Puzzle {
+ Puzzle() : key(0), flags(0) {}
+
~Puzzle() {
for (Common::List<ResultAction *>::iterator iter = resultActions.begin(); iter != resultActions.end(); iter++) {
delete (*iter);