diff options
| author | Quietust | 2012-01-27 22:02:43 -0600 |
|---|---|---|
| committer | Quietust | 2012-01-27 22:02:43 -0600 |
| commit | 7949aab1999d78926217c5317b7e776888a7ecf3 (patch) | |
| tree | 7257f33ac45c59a83905c2d9dc25dca942fb20d0 /plugins/showmood.cpp | |
| parent | a36e7f4298578420016546c3453e7ccdf96911b5 (diff) | |
| download | dfhack-7949aab1999d78926217c5317b7e776888a7ecf3.tar.gz dfhack-7949aab1999d78926217c5317b7e776888a7ecf3.tar.bz2 dfhack-7949aab1999d78926217c5317b7e776888a7ecf3.tar.xz | |
Make sure showmood has access to Translation
Diffstat (limited to 'plugins/showmood.cpp')
| -rw-r--r-- | plugins/showmood.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/showmood.cpp b/plugins/showmood.cpp index 25bc4361..834d9ded 100644 --- a/plugins/showmood.cpp +++ b/plugins/showmood.cpp @@ -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; |
