diff options
author | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-10-14 18:38:51 +0000 |
commit | b5e467978b70884033d8e25a4a9738cc17699e4e (patch) | |
tree | a41b987e5fdc223ac9abf159f9ee753f07f2234d /src/spritecache.cpp | |
parent | 6e397dd3f0b4999c65f0ad5d35fa9007bc6bc9d8 (diff) | |
download | openttd-b5e467978b70884033d8e25a4a9738cc17699e4e.tar.xz |
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
Diffstat (limited to 'src/spritecache.cpp')
-rw-r--r-- | src/spritecache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp index 5d141cce3..4de7e076b 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -425,7 +425,7 @@ static void DeleteEntryFromSpriteCache() /* Display an error message and die, in case we found no sprite at all. * This shouldn't really happen, unless all sprites are locked. */ - if (best == (uint)-1) error("Out of sprite memory"); + if (best == UINT_MAX) error("Out of sprite memory"); /* Mark the block as free (the block must be in use) */ s = (MemBlock*)GetSpriteCache(best)->ptr - 1; |