diff options
Diffstat (limited to 'engines/gob/inter_v3.cpp')
-rw-r--r-- | engines/gob/inter_v3.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/inter_v3.cpp b/engines/gob/inter_v3.cpp index 0750d29947..17ce7feafa 100644 --- a/engines/gob/inter_v3.cpp +++ b/engines/gob/inter_v3.cpp @@ -217,8 +217,10 @@ bool Inter_v3::o3_getTotTextItemPart(OpFuncParams ¶ms) { if (((*totData != 2) && (*totData != 5)) || (ABS(offY - READ_LE_UINT16(totData + 3)) > 1)) { - if (curPart == part) + if (curPart == part) { + delete textItem; return false; + } stringVar = stringStartVar; WRITE_VARO_UINT8(stringVar, 0); |