diff options
author | Willem Jan Palenstijn | 2013-04-15 20:36:03 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-04-15 20:36:03 +0200 |
commit | d4982381d2e0c9e4cc6e774f0303a230ccda5ea2 (patch) | |
tree | 0460f678f8ea5122cbb9e3cdd0a291c02584bf70 /engines/wintermute/base/gfx | |
parent | e7b38a7c2a91a881ce00eecca86cd202ed8375d1 (diff) | |
download | scummvm-rg350-d4982381d2e0c9e4cc6e774f0303a230ccda5ea2.tar.gz scummvm-rg350-d4982381d2e0c9e4cc6e774f0303a230ccda5ea2.tar.bz2 scummvm-rg350-d4982381d2e0c9e4cc6e774f0303a230ccda5ea2.zip |
WINTERMUTE: Fix side effect of assert
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 13e2b9a5bc..0bb987a8b9 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -484,7 +484,8 @@ void BaseRenderOSystem::drawTickets() { _drawNum = 1; for (it = _renderQueue.begin(); it != _renderQueue.end(); ++it) { RenderTicket *ticket = *it; - assert(ticket->_drawNum == _drawNum++); + assert(ticket->_drawNum == _drawNum); + ++_drawNum; if (ticket->_dstRect.intersects(*_dirtyRect)) { // dstClip is the area we want redrawn. Common::Rect dstClip(ticket->_dstRect); |