aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword2/console.cpp')
-rw-r--r--engines/sword2/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword2/console.cpp b/engines/sword2/console.cpp
index 28e2e8ce7b..4838bd15f6 100644
--- a/engines/sword2/console.cpp
+++ b/engines/sword2/console.cpp
@@ -173,7 +173,7 @@ bool Debugger::Cmd_Mem(int argc, const char **argv) {
int16 numBlocks = _vm->_memory->getNumBlocks();
MemBlock *memBlocks = _vm->_memory->getMemBlocks();
- MemBlock **blocks = (MemBlock **)malloc(numBlocks * sizeof(MemBlock));
+ MemBlock **blocks = (MemBlock **)malloc(numBlocks * sizeof(MemBlock *));
int i, j;