diff options
| author | Petr Mrázek | 2011-08-04 04:18:38 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-08-04 04:18:38 +0200 |
| commit | 02d5f2273b594e8146d56d74ff0621efd6e51aa3 (patch) | |
| tree | 2c4b2c1affdea9f4ffebd7d71c9c9f32117dfa89 /plugins/colonies.cpp | |
| parent | a8543f5ef034774e026cf434c11055783a68c9d9 (diff) | |
| download | dfhack-02d5f2273b594e8146d56d74ff0621efd6e51aa3.tar.gz dfhack-02d5f2273b594e8146d56d74ff0621efd6e51aa3.tar.bz2 dfhack-02d5f2273b594e8146d56d74ff0621efd6e51aa3.tar.xz | |
Fix colonies plugin.
Diffstat (limited to 'plugins/colonies.cpp')
| -rw-r--r-- | plugins/colonies.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/colonies.cpp b/plugins/colonies.cpp index 6674e64a..4bba91ad 100644 --- a/plugins/colonies.cpp +++ b/plugins/colonies.cpp @@ -54,11 +54,10 @@ DFhackCExport command_result colonies (Core * c, vector <string> & parameters) if (destroy && convert) { - - c->con << "Kill or make bees? DECIDE!" << std::endl; + c->con.printerr("Kill or make bees? DECIDE!\n"); + c->Resume(); return CR_FAILURE; } - c->Suspend(); Vermin * vermin = c->getVermin(); @@ -66,9 +65,10 @@ DFhackCExport command_result colonies (Core * c, vector <string> & parameters) SpawnPoints *points = vermin->getSpawnPoints(); - if(!points->isValid()) + if(!points || !points->isValid()) { - c->con << "vermin not supported for this DF version" << std::endl; + c->con.printerr("vermin not supported for this DF version\n"); + c->Resume(); return CR_FAILURE; } |
