aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-08-31 19:54:53 +0200
committerEinar Johan Trøan Sømåen2012-08-31 20:00:41 +0200
commit313376c32985c8ce23f148b8a70d0222e2310080 (patch)
tree4f4f3c328edbf2e88d5328f067c18551e2abeb62
parent7027741de777f3d1f5e9e93f5a2dd8ade09b6599 (diff)
downloadscummvm-rg350-313376c32985c8ce23f148b8a70d0222e2310080.tar.gz
scummvm-rg350-313376c32985c8ce23f148b8a70d0222e2310080.tar.bz2
scummvm-rg350-313376c32985c8ce23f148b8a70d0222e2310080.zip
WINTERMUTE: Fix a warning I missed in the last commit.
-rw-r--r--engines/wintermute/ad/ad_scene.cpp4
1 files 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;