diff --git a/library/modules/Translation.cpp b/library/modules/Translation.cpp index 10dcf8a50..2d44e2144 100644 --- a/library/modules/Translation.cpp +++ b/library/modules/Translation.cpp @@ -49,7 +49,7 @@ using df::global::d_init; bool Translation::IsValid () { - return (world->raws.language.words.size() > 0) && (world->raws.language.translations.size() > 0); + return (world && (world->raws.language.words.size() > 0) && (world->raws.language.translations.size() > 0)); } bool Translation::readName(t_name & name, df::language_name * source)