aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-25 09:13:31 +1100
committerPaul Gilbert2012-10-25 09:13:31 +1100
commit0e153feefc1312c3cb6371a144458ceb7c8e3d94 (patch)
treea03b8304e2827bd0cd0faf5e4095f22dd583f522 /engines/hopkins
parentaeb7794a74e6c6c6254d2712b701d7ed6b01b167 (diff)
downloadscummvm-rg350-0e153feefc1312c3cb6371a144458ceb7c8e3d94.tar.gz
scummvm-rg350-0e153feefc1312c3cb6371a144458ceb7c8e3d94.tar.bz2
scummvm-rg350-0e153feefc1312c3cb6371a144458ceb7c8e3d94.zip
HOPKINS: Added initialisation of allocated lineData blocks
Diffstat (limited to 'engines/hopkins')
-rw-r--r--engines/hopkins/lines.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 5e4e2a5b93..6289e10f8a 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -281,6 +281,8 @@ void LinesManager::AJOUTE_LIGNE(int idx, int a2, int a3, int a4, int a5, int a6,
v10 = _vm->_globals.dos_malloc2(4 * v34 + 8);
if (v10 == g_PTRNUL)
error("AJOUTE LIGNE OBSTACLE");
+
+ Common::fill(v10, v10 + 4 * v34 + 8, 0);
Ligne[idx].lineData = (int16 *)v10;
v32 = Ligne[idx].lineData;