diff options
| author | Max Horn | 2003-06-05 09:54:57 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-06-05 09:54:57 +0000 | 
| commit | 6c35550334c7d5ff8e6c18d7aff7ec02c90d6448 (patch) | |
| tree | 03702c47c4220d5d5953bc8a809b32ccff463bc1 | |
| parent | 9533f5605aa9203dc3f10d3f638685a74f347795 (diff) | |
| download | scummvm-rg350-6c35550334c7d5ff8e6c18d7aff7ec02c90d6448.tar.gz scummvm-rg350-6c35550334c7d5ff8e6c18d7aff7ec02c90d6448.tar.bz2 scummvm-rg350-6c35550334c7d5ff8e6c18d7aff7ec02c90d6448.zip  | |
proper const cast
svn-id: r8319
| -rw-r--r-- | scumm/actor.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 18322986a8..f13c7014ab 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -806,8 +806,8 @@ inline int32 drawOrder (const Actor* x) { return (x)->y - ((x)->layer << 11); }  int sortByDrawOrder (const void* a, const void* b)  { -	const Actor* actor1 = *(const Actor**)a; -	const Actor* actor2 = *(const Actor**)b; +	const Actor* actor1 = *(const Actor *const*)a; +	const Actor* actor2 = *(const Actor *const*)b;  	assert (DRAW_ORDER (actor1)==drawOrder (actor1) && DRAW_ORDER (actor1)==drawOrder (actor1));  	return drawOrder (actor1)-drawOrder (actor2);  }  | 
