diff options
author | tron <tron@openttd.org> | 2005-02-11 17:12:11 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-11 17:12:11 +0000 |
commit | 9b0bad683dd037b3a4e98b861a913cc81c203c54 (patch) | |
tree | 6472a312a94e73099637859190559fe120d56e69 /main_gui.c | |
parent | febe132c48d8a109c858b2aea00cb26f61268285 (diff) | |
download | openttd-9b0bad683dd037b3a4e98b861a913cc81c203c54.tar.xz |
(svn r1861) Constify Get(Non)Sprite()
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c index 4e0d8c326..48e1c9b00 100644 --- a/main_gui.c +++ b/main_gui.c @@ -2373,12 +2373,12 @@ extern void ShowJoinStatusWindowAfterJoin(void); void SetupColorsAndInitialWindow(void) { int i; - byte *b; Window *w; int width,height; for(i=0; i!=16; i++) { - b = GetNonSprite(0x307 + i); + const byte* b = GetNonSprite(0x307 + i); + assert(b); _color_list[i] = *(ColorList*)(b + 0xC6); } |