aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-03-08 20:51:30 +0000
committerJohannes Schickel2009-03-08 20:51:30 +0000
commite123621cf99117143b7d80e70b911086daad766a (patch)
treebc36d5ade5a3b0375829b3ea765ccede1cc00fe7 /engines
parent77d056654fd37119b70b1be1c3b63365beeb377d (diff)
downloadscummvm-rg350-e123621cf99117143b7d80e70b911086daad766a.tar.gz
scummvm-rg350-e123621cf99117143b7d80e70b911086daad766a.tar.bz2
scummvm-rg350-e123621cf99117143b7d80e70b911086daad766a.zip
Fix warning.
svn-id: r39244
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/gfx/palette.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/gfx/palette.cpp b/engines/sci/gfx/palette.cpp
index f7beb3f474..a42b773725 100644
--- a/engines/sci/gfx/palette.cpp
+++ b/engines/sci/gfx/palette.cpp
@@ -100,7 +100,9 @@ void Palette::unmerge() {
assert(pi < (int)_parent->_size);
assert(_parent->_colors[pi].refcount != 0);
assert(_parent->_colors[pi].refcount != PALENTRY_FREE);
+#ifdef DEBUG_MERGE
int old = _parent->_colors[pi].refcount;
+#endif
if (_parent->_colors[pi].refcount != PALENTRY_LOCKED)
_parent->_colors[pi].refcount--;
if (_parent->_colors[pi].refcount == 0) {