Clarify autolabor initialization failure

develop
lethosor 2014-12-02 17:58:30 -05:00
parent e3c13fc555
commit 2d7ea52c40
1 changed files with 3 additions and 0 deletions

@ -654,7 +654,10 @@ DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <Plug
{
// initialize labor infos table from default table
if(ARRAY_COUNT(default_labor_infos) != ENUM_LAST_ITEM(unit_labor) + 1)
{
out.printerr("autolabor: labor size mismatch\n");
return CR_FAILURE;
}
// Fill the command list with your commands.
commands.push_back(PluginCommand(