forked from mirror/OpenTTD
(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
This commit is contained in:
@@ -2378,7 +2378,7 @@ void SetupColorsAndInitialWindow(void)
|
||||
int width,height;
|
||||
|
||||
for(i=0; i!=16; i++) {
|
||||
b = GetSpritePtr(0x307 + i);
|
||||
b = GetNonSprite(0x307 + i);
|
||||
assert(b);
|
||||
_color_list[i] = *(ColorList*)(b + 0xC6);
|
||||
}
|
||||
|
Reference in New Issue
Block a user