Make sure showmood has access to Translation

develop
Quietust 2012-01-27 22:02:43 -06:00
parent a36e7f4298
commit 7949aab199
1 changed files with 6 additions and 0 deletions

@ -32,6 +32,12 @@ DFhackCExport command_result df_showmood (Core * c, vector <string> & parameters
if (!parameters.empty())
return CR_WRONG_USAGE;
if (!Translation::IsValid())
{
c->con.printerr("Translation data unavailable!\n");
return CR_FAILURE;
}
CoreSuspender suspend(c);
bool found = false;