aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/resmgr.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-02-28 16:06:32 +0000
committerJohannes Schickel2009-02-28 16:06:32 +0000
commit9cc4f5630e26d2dc474623635a6978210a7a16da (patch)
tree142b7a7a904759958069078f74b26472b7829d7e /engines/sci/gfx/resmgr.cpp
parent1befd93475a8a92b55555a17752ccf68b7cd224c (diff)
downloadscummvm-rg350-9cc4f5630e26d2dc474623635a6978210a7a16da.tar.gz
scummvm-rg350-9cc4f5630e26d2dc474623635a6978210a7a16da.tar.bz2
scummvm-rg350-9cc4f5630e26d2dc474623635a6978210a7a16da.zip
Fix warnings.
svn-id: r38972
Diffstat (limited to 'engines/sci/gfx/resmgr.cpp')
-rw-r--r--engines/sci/gfx/resmgr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/gfx/resmgr.cpp b/engines/sci/gfx/resmgr.cpp
index 7598d2a98e..dba08fef2e 100644
--- a/engines/sci/gfx/resmgr.cpp
+++ b/engines/sci/gfx/resmgr.cpp
@@ -161,7 +161,10 @@ void *gfxr_sbtree_free_tagged_func(sbtree_t *tree, const int key, const void *va
resource->lock_sequence_nr = 0;
else
(resource->lock_sequence_nr)--;
- return (void *) value;
+ // FIXME: const_cast does not sound like a good idea,
+ // maybe we should just make the value parameter
+ // non const instead?
+ return const_cast<void *>(value);
}
} else
return NULL;