From 014d6bd9f0d561b0fff4748a46606281042046e0 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 26 Jun 2014 21:07:24 +0200 Subject: CGE2: Hopefully fix compilation for GCC --- engines/cge2/cge2_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/cge2/cge2_main.cpp') diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index 5d4a97fd80..75b9affc1a 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -619,7 +619,7 @@ void CGE2Engine::tick() { void CGE2Engine::openPocket() { for (int i = 0; i < 2; i++) { for (int j = 0; j < kPocketMax + 1; j++) { - int ref = (int)_heroTab[i]->_pocket[j]; + int ref = (int)_heroTab[i]->_downPocketId[j]; _heroTab[i]->_pocket[j] = (ref == -1) ? nullptr : _vga->_showQ->locate(ref); } } @@ -629,7 +629,7 @@ void CGE2Engine::closePocket() { for (int i = 0; i < 2; i++) { for (int j = 0; j < kPocketMax + 1; j++) { Sprite *spr = _heroTab[i]->_pocket[j]; - _heroTab[i]->_pocket[j] = (Sprite*)((spr) ? spr->_ref : -1); + _heroTab[i]->_downPocketId[j] = (spr) ? spr->_ref : -1; } } } -- cgit v1.2.3