diff options
| author | Petr Mrázek | 2012-03-29 20:18:14 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2012-03-29 20:18:14 +0200 |
| commit | 0c2c94fa92f27290fc499f4542179ed9a0f2a7e0 (patch) | |
| tree | 2d3a90c85a077eac451645e7f88121d6ce708ea1 /plugins/mode.cpp | |
| parent | 69b1bbe59ea1a3969a2623ba2d32b9455762307a (diff) | |
| download | dfhack-0c2c94fa92f27290fc499f4542179ed9a0f2a7e0.tar.gz dfhack-0c2c94fa92f27290fc499f4542179ed9a0f2a7e0.tar.bz2 dfhack-0c2c94fa92f27290fc499f4542179ed9a0f2a7e0.tar.xz | |
Remove random bad asserts
Diffstat (limited to 'plugins/mode.cpp')
| -rw-r--r-- | plugins/mode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mode.cpp b/plugins/mode.cpp index d87fd539..33dd5875 100644 --- a/plugins/mode.cpp +++ b/plugins/mode.cpp @@ -95,7 +95,8 @@ void printCurrentModes(t_gamemodes gm, Console & con) command_result mode (color_ostream &out_, vector <string> & parameters) { - assert(out_.is_console()); + if(!out_.is_console()) + return CR_FAILURE; Console &out = static_cast<Console&>(out_); string command = ""; |
