Improve Translation::isValid() - make sure world exists

develop
Quietust 2012-01-27 22:01:59 -06:00
parent 34f9d98d45
commit 69b8f168cc
1 changed files with 1 additions and 1 deletions

@ -49,7 +49,7 @@ using df::global::d_init;
bool Translation::IsValid () 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) bool Translation::readName(t_name & name, df::language_name * source)