diff options
author | Eugene Sandulenko | 2016-05-17 19:11:07 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-17 19:11:07 +0200 |
commit | fcc94778e4178aefff0de581c8c5dd7482aeacb9 (patch) | |
tree | 4a674005640ad696d1304d17218a840b3873b88a /engines | |
parent | f6283094acebd6ea0587689716cf749d0a352a9d (diff) | |
download | scummvm-rg350-fcc94778e4178aefff0de581c8c5dd7482aeacb9.tar.gz scummvm-rg350-fcc94778e4178aefff0de581c8c5dd7482aeacb9.tar.bz2 scummvm-rg350-fcc94778e4178aefff0de581c8c5dd7482aeacb9.zip |
CINE: Remove useless code.
var_2 used to be always NULL after while() loop, thus, the first if()
condition is always false.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/cell.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/cruise/cell.cpp b/engines/cruise/cell.cpp index b7cef41764..46539463b8 100644 --- a/engines/cruise/cell.cpp +++ b/engines/cruise/cell.cpp @@ -129,15 +129,12 @@ void createTextObject(cellStruct *pObject, int overlayIdx, int messageIdx, int x cellStruct *pNewElement; cellStruct *si = pObject->next; - cellStruct *var_2; while (si) { pObject = si; si = si->next; } - var_2 = si; - pNewElement = (cellStruct *) MemAlloc(sizeof(cellStruct)); memset(pNewElement, 0, sizeof(cellStruct)); @@ -157,11 +154,7 @@ void createTextObject(cellStruct *pObject, int overlayIdx, int messageIdx, int x pNewElement->parentOverlay = parentOvl; pNewElement->gfxPtr = NULL; - if (var_2) { - cx = var_2; - } else { - cx = savePObject; - } + cx = savePObject; pNewElement->prev = cx->prev; cx->prev = pNewElement; |