aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/snail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/snail.cpp')
-rw-r--r--engines/cge/snail.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index bc9d212468..a568110de7 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -381,7 +381,7 @@ void CGEEngine::feedSnail(Sprite *spr, SNLIST snq) {
if (c->_ptr)
break;
else
- ++c;
+ c++;
}
}
}
@@ -410,8 +410,7 @@ Snail::Snail(CGEEngine *vm, bool turbo)
}
Snail::~Snail() {
- if (_snList)
- free(_snList);
+ free(_snList);
}
void Snail::addCom(SNCOM com, int ref, int val, void *ptr) {