aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/msg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/msg.cpp')
-rw-r--r--engines/cine/msg.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/cine/msg.cpp b/engines/cine/msg.cpp
index 0947cbd45a..244f464116 100644
--- a/engines/cine/msg.cpp
+++ b/engines/cine/msg.cpp
@@ -42,13 +42,10 @@ void loadMsg(char *pMsgName) {
for (i = 0; i < NUM_MAX_MESSAGE; i++) {
messageTable[i].len = 0;
-
if (messageTable[i].ptr) {
- assert(messageTable[i].ptr);
free(messageTable[i].ptr);
+ messageTable[i].ptr = NULL;
}
-
- messageTable[i].ptr = NULL;
}
ptr = dataPtr = readBundleFile(findFileInBundle(pMsgName));