changeset 7209:7e16ba7fdb32 draft

(svn r10487) -Fix: forgot some breaks in a switch statement.
author rubidium <rubidium@openttd.org>
date Mon, 09 Jul 2007 16:24:00 +0000
parents faf2fbf578b6
children 2b0a45ffd7b2
files src/newgrf_industries.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -335,10 +335,10 @@
 
 	switch (group->g.callback.result) {
 		case 0x400: return true;
-		case 0x401: _error_message = STR_0239_SITE_UNSUITABLE;
-		case 0x402: _error_message = STR_0317_CAN_ONLY_BE_BUILT_IN_RAINFOREST;
-		case 0x403: _error_message = STR_0318_CAN_ONLY_BE_BUILT_IN_DESERT;
-		default: _error_message = GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + group->g.callback.result);
+		case 0x401: _error_message = STR_0239_SITE_UNSUITABLE; break;
+		case 0x402: _error_message = STR_0317_CAN_ONLY_BE_BUILT_IN_RAINFOREST; break;
+		case 0x403: _error_message = STR_0318_CAN_ONLY_BE_BUILT_IN_DESERT; break;
+		default: _error_message = GetGRFStringID(indspec->grf_prop.grffile->grfid, 0xD000 + group->g.callback.result); break;
 	}
 
 	return false;