aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/agi_v3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/agi/agi_v3.cpp b/engines/agi/agi_v3.cpp
index 4729058484..7b295f1663 100644
--- a/engines/agi/agi_v3.cpp
+++ b/engines/agi/agi_v3.cpp
@@ -62,6 +62,7 @@ int AgiLoader_v3::detectGame() {
f.toLowercase();
if (f.hasSuffix("vol.0")) {
+ memset(_vm->_game.name, 0, 8);
strncpy(_vm->_game.name, f.c_str(), f.size() > 5 ? f.size() - 5 : f.size());
debugC(3, kDebugLevelMain, "game.name = %s", _vm->_game.name);
_intVersion = 0x3149; // setup for 3.002.149