Fix crash bug when using manipulator in Arena mode

develop
Quietust 2012-09-12 13:42:16 -05:00
parent 46321a6a01
commit c9d73cb6fb
1 changed files with 1 additions and 1 deletions

@ -623,7 +623,7 @@ void viewscreen_unitlaborsst::render()
Screen::paintTile(Screen::Pen(columns[col_offset].label[0], fg, bg), 1 + name_width + 1 + prof_width + 1 + col, 1); Screen::paintTile(Screen::Pen(columns[col_offset].label[0], fg, bg), 1 + name_width + 1 + prof_width + 1 + col, 1);
Screen::paintTile(Screen::Pen(columns[col_offset].label[1], fg, bg), 1 + name_width + 1 + prof_width + 1 + col, 2); Screen::paintTile(Screen::Pen(columns[col_offset].label[1], fg, bg), 1 + name_width + 1 + prof_width + 1 + col, 2);
df::profession profession = columns[col_offset].profession; df::profession profession = columns[col_offset].profession;
if (profession != profession::NONE) if ((profession != profession::NONE) && (ui->race_id != -1))
{ {
auto graphics = world->raws.creatures.all[ui->race_id]->graphics; auto graphics = world->raws.creatures.all[ui->race_id]->graphics;
Screen::paintTile( Screen::paintTile(