Petr Mrázek 2012-09-29 01:58:29 +02:00
commit 1bac22884e
1 changed files with 5 additions and 1 deletions

@ -383,8 +383,12 @@ viewscreen_unitlaborsst::viewscreen_unitlaborsst(vector<df::unit*> &src, int cur
for (size_t i = 0; i < src.size(); i++) for (size_t i = 0; i < src.size(); i++)
{ {
UnitInfo *cur = new UnitInfo;
df::unit *unit = src[i]; df::unit *unit = src[i];
if (!unit)
continue;
UnitInfo *cur = new UnitInfo;
cur->unit = unit; cur->unit = unit;
cur->allowEdit = true; cur->allowEdit = true;
cur->active_index = active_idx[unit]; cur->active_index = active_idx[unit];