summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-27 06:33:21 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-27 06:33:21 +0000
commite6d9d67f771e3cbd5a3dfc0e5dbd354308235b93 (patch)
treeccd947cfc879c2c20ddf14c2878137cb1468237e
parent725cfc26d0a323b8649369c048acf6192d8875e4 (diff)
downloadopenttd-e6d9d67f771e3cbd5a3dfc0e5dbd354308235b93.tar.xz
(svn r4588) - NewGRF: silence a false compiler warning
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index c19fc8b91..4c02ceb65 100644
--- a/newgrf.c
+++ b/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;
switch (GB(type, 2, 2)) {
+ default: NOT_REACHED();
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 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)");