From b936611e030f6748013b5360c8617d44643cb335 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 12 Sep 2013 21:44:36 +0200 Subject: AVALANCHE: Fix various warnings reported by GCC and/or wjp --- engines/avalanche/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/avalanche/animation.cpp') diff --git a/engines/avalanche/animation.cpp b/engines/avalanche/animation.cpp index 5bff12307b..615bf94d40 100644 --- a/engines/avalanche/animation.cpp +++ b/engines/avalanche/animation.cpp @@ -226,7 +226,7 @@ void AnimationType::walk() { break; case Gyro::kMagicUnfinished: { bounce(); - Common::String tmpStr = Common::String::format("%cSorry.%cThis place is not available yet!", Scrolls::kControlBell, Scrolls::kControlCenter, Scrolls::kControlRoman); + Common::String tmpStr = Common::String::format("%c%cSorry.%cThis place is not available yet!", Scrolls::kControlBell, Scrolls::kControlCenter, Scrolls::kControlRoman); _anim->_vm->_scrolls->displayText(tmpStr); } break; @@ -352,8 +352,8 @@ void AnimationType::remove() { if ((_info._xLength % 8) > 0) _info._xWidth++; for (byte i = 0; i < _stat._frameNum; i++) { + assert(_animCount > 0); _animCount--; - assert(_animCount >= 0); delete[] _info._mani[_animCount]; delete[] _info._sil[_animCount]; } -- cgit v1.2.3