mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-30 02:43:38 +00:00
(svn r4588) - NewGRF: silence a false compiler warning
This commit is contained in:
parent
feefbbbf06
commit
a0c9b03801
2
newgrf.c
2
newgrf.c
@ -1412,10 +1412,10 @@ static void NewSpriteGroup(byte *buf, int len)
|
|||||||
group->g.determ.var_scope = HASBIT(type, 1) ? VSG_SCOPE_PARENT : VSG_SCOPE_SELF;
|
group->g.determ.var_scope = HASBIT(type, 1) ? VSG_SCOPE_PARENT : VSG_SCOPE_SELF;
|
||||||
|
|
||||||
switch (GB(type, 2, 2)) {
|
switch (GB(type, 2, 2)) {
|
||||||
|
default: NOT_REACHED();
|
||||||
case 0: group->g.determ.size = DSG_SIZE_BYTE; varsize = 1; break;
|
case 0: group->g.determ.size = DSG_SIZE_BYTE; varsize = 1; break;
|
||||||
case 1: group->g.determ.size = DSG_SIZE_WORD; varsize = 2; break;
|
case 1: group->g.determ.size = DSG_SIZE_WORD; varsize = 2; break;
|
||||||
case 2: group->g.determ.size = DSG_SIZE_DWORD; varsize = 4; break;
|
case 2: group->g.determ.size = DSG_SIZE_DWORD; varsize = 4; break;
|
||||||
default: NOT_REACHED(); break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_length(bufend - buf, 2 + (varsize * 3) + 2, "NewSpriteGroup (Deterministic) (2)");
|
check_length(bufend - buf, 2 + (varsize * 3) + 2, "NewSpriteGroup (Deterministic) (2)");
|
||||||
|
Loading…
Reference in New Issue
Block a user