aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/particles
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-08-31 14:01:18 +0200
committerEinar Johan Trøan Sømåen2012-08-31 14:01:18 +0200
commit2039ea6b8df36c960ff25ae56930357d40e95d1d (patch)
treef4e6f5737f6ca3880584a47554c574f11035ee98 /engines/wintermute/base/particles
parent16b27090b1c7dc11cdc199b1a98c0f2973db5f45 (diff)
downloadscummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.tar.gz
scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.tar.bz2
scummvm-rg350-2039ea6b8df36c960ff25ae56930357d40e95d1d.zip
WINTERMUTE: Fix g++ warnings listed by LordHoto
Diffstat (limited to 'engines/wintermute/base/particles')
-rw-r--r--engines/wintermute/base/particles/part_emitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/particles/part_emitter.cpp b/engines/wintermute/base/particles/part_emitter.cpp
index d6006528a2..1a6d4fe1e5 100644
--- a/engines/wintermute/base/particles/part_emitter.cpp
+++ b/engines/wintermute/base/particles/part_emitter.cpp
@@ -373,8 +373,8 @@ bool PartEmitter::sortParticlesByZ() {
//////////////////////////////////////////////////////////////////////////
int PartEmitter::compareZ(const void *obj1, const void *obj2) {
- PartParticle *p1 = *(PartParticle **)obj1;
- PartParticle *p2 = *(PartParticle **)obj2;
+ const PartParticle *p1 = *(PartParticle **)obj1;
+ const PartParticle *p2 = *(PartParticle **)obj2;
if (p1->_posZ < p2->_posZ) {
return -1;