Skip to content

Commit

Permalink
HOPKINS: Added initialisation of allocated lineData blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Oct 24, 2012
1 parent aeb7794 commit 0e153fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/hopkins/lines.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 0e153fe

Please sign in to comment.