summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-10 12:14:38 +0000
committertron <tron@openttd.org>2005-02-10 12:14:38 +0000
commit94c75f33bb896b32866fd062242067d773b0f7b1 (patch)
treeb487a5d141332ab7f42372d6735d5951cc75524e /smallmap_gui.c
parent2a151d93546db1d867a7cc0691a5c0e5973a4b98 (diff)
downloadopenttd-94c75f33bb896b32866fd062242067d773b0f7b1.tar.xz
(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index 476867083..174447d0f 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -618,7 +618,7 @@ static void DrawSmallMap(DrawPixelInfo *dpi, Window *w, int type, bool show_town
FOR_ALL_PLAYERS(p) {
if (p->is_active)
_owner_colors[p->index] =
- dup_byte32(GetSpritePtr(0x307 + p->player_color)[0xCB]);
+ dup_byte32(GetNonSprite(0x307 + p->player_color)[0xCB]);
}
}