aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/draci/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index d76369e638..592863b12b 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -1453,7 +1453,7 @@ void Game::DoSync(Common::Serializer &s) {
int itemID = _inventory[i] ? _inventory[i]->_absNum : -1;
s.syncAsSint16LE(itemID);
} else {
- int itemID;
+ int itemID = -1;
s.syncAsSint16LE(itemID);
_inventory[i] = getItem(itemID);
}