summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-05-23 13:42:02 +0000
committerfrosch <frosch@openttd.org>2009-05-23 13:42:02 +0000
commit8e30f0e75abe83358a0d3c72716d7a77d0f89cf1 (patch)
tree7206150b2220679910f75b0433d4c54bc3e29c0a
parentbbd14acb1d6243ef50c0b884a92767d1b82c6e95 (diff)
downloadopenttd-8e30f0e75abe83358a0d3c72716d7a77d0f89cf1.tar.xz
(svn r16399) -Fix (r4540): Don't treat pointer values as integer.
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 530df31b6..1733d7536 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -3311,7 +3311,7 @@ static void FeatureMapSpriteGroup(byte *buf, size_t len)
* W cid cargo ID (sprite group ID) for this type of cargo
* W def-cid default cargo ID (sprite group ID) */
- if (_cur_grffile->spritegroups == 0) {
+ if (_cur_grffile->spritegroups == NULL) {
grfmsg(1, "FeatureMapSpriteGroup: No sprite groups to work on! Skipping");
return;
}