From 313376c32985c8ce23f148b8a70d0222e2310080 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Fri, 31 Aug 2012 19:54:53 +0200 Subject: WINTERMUTE: Fix a warning I missed in the last commit. --- engines/wintermute/ad/ad_scene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp index 5b96bc0c3a..ddaf4d0adb 100644 --- a/engines/wintermute/ad/ad_scene.cpp +++ b/engines/wintermute/ad/ad_scene.cpp @@ -1195,8 +1195,8 @@ bool AdScene::displayRegionContent(AdRegion *region, bool display3DOnly) { ////////////////////////////////////////////////////////////////////////// int AdScene::compareObjs(const void *obj1, const void *obj2) { - const AdObject *object1 = *(AdObject **)obj1; - const AdObject *object2 = *(AdObject **)obj2; + const AdObject *object1 = *(const AdObject *const *)obj1; + const AdObject *object2 = *(const AdObject *const *)obj2; if (object1->_posY < object2->_posY) { return -1; -- cgit v1.2.3