summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-04-24 18:58:47 +0000
committerfrosch <frosch@openttd.org>2014-04-24 18:58:47 +0000
commitd71cc434e40c73d6557529f58287c5bbc5451114 (patch)
tree41af589796f4bceb1d54cabc3a2780e0fbcbbc65 /src/game
parent2e493fa806bb54bf48a5f47729a9c5a01afdd100 (diff)
downloadopenttd-d71cc434e40c73d6557529f58287c5bbc5451114.tar.xz
(svn r26504) -Fix (r26499): Obiwan and his gang.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game_text.cpp b/src/game/game_text.cpp
index bfff460ae..1717dcf9a 100644
--- a/src/game/game_text.cpp
+++ b/src/game/game_text.cpp
@@ -66,7 +66,7 @@ void NORETURN CDECL strgen_fatal(const char *s, ...)
*/
LanguageStrings::LanguageStrings(const char *language, const char *end)
{
- this->language = stredup(language, end - 1);
+ this->language = stredup(language, end != NULL ? end - 1 : NULL);
}
/** Free everything. */