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/tiletypes.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/tiletypes.cpp')
| -rw-r--r-- | plugins/tiletypes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tiletypes.cpp b/plugins/tiletypes.cpp index 2b2bcf2e..61b4ec8e 100644 --- a/plugins/tiletypes.cpp +++ b/plugins/tiletypes.cpp @@ -524,7 +524,8 @@ command_result df_tiletypes (color_ostream &out, vector <string> & parameters) } } - assert(out.is_console()); + if(!out.is_console()) + return CR_FAILURE; Console &con = static_cast<Console&>(out); TileType filter, paint; |
