summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 66919e38c..efc68ce41 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -233,7 +233,10 @@ char *GetStringWithArgs(char *buffr, StringID string, StringParameters *args, co
case 15:
/* Old table for custom names. This is no longer used */
- error("Incorrect conversion of custom name string.");
+ if (!game_script) {
+ error("Incorrect conversion of custom name string.");
+ }
+ break;
case GAME_TEXT_TAB:
return FormatString(buffr, GetGameStringPtr(index), args, last, case_index, true);
@@ -254,9 +257,6 @@ char *GetStringWithArgs(char *buffr, StringID string, StringParameters *args, co
case 30:
return FormatString(buffr, GetGRFStringPtr(index + 0x1000), args, last, case_index);
-
- case 31:
- NOT_REACHED();
}
if (index >= _langtab_num[tab]) {