summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 18:10:06 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 18:10:06 +0000
commitcf130ce9d86253c4c4b91ff22c6ae27f8d165171 (patch)
treeff1f31ccf588cdf56b476608bd732e8c0f430fb3 /src
parent9e216a688f13ca158609c28dbd191db42c3e32ec (diff)
downloadopenttd-cf130ce9d86253c4c4b91ff22c6ae27f8d165171.tar.xz
(svn r26069) -Fix: missing break in NewGRF object handling
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 9725d9513..e3cca8b95 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2847,6 +2847,7 @@ static ChangeInfoResult CargoChangeInfo(uint cid, int numinfo, int prop, ByteRea
case 0x0B: cs->town_effect = TE_FOOD; break;
default:
grfmsg(1, "CargoChangeInfo: Unknown town growth substitute value %d, setting to none.", substitute_type);
+ /* FALL THROUGH */
case 0xFF: cs->town_effect = TE_NONE; break;
}
break;
@@ -3737,6 +3738,7 @@ static ChangeInfoResult IgnoreObjectProperty(uint prop, ByteReader *buf)
case 0x16:
case 0x17:
buf->ReadByte();
+ break;
case 0x09:
case 0x0A: