summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuietust2012-09-12 13:42:16 -0500
committerQuietust2012-09-12 13:42:16 -0500
commitc9d73cb6fb846a7e1b5befcb13d1712c0cce831a (patch)
tree8c5b67b854d767345a4a10bf9bb2f5d1840b05cc
parent46321a6a01ba4fff79992c7bde26c812b14fd382 (diff)
downloaddfhack-c9d73cb6fb846a7e1b5befcb13d1712c0cce831a.tar.gz
dfhack-c9d73cb6fb846a7e1b5befcb13d1712c0cce831a.tar.bz2
dfhack-c9d73cb6fb846a7e1b5befcb13d1712c0cce831a.tar.xz
Fix crash bug when using manipulator in Arena mode
-rw-r--r--plugins/manipulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/manipulator.cpp b/plugins/manipulator.cpp
index 1a90d2ee..06861bf0 100644
--- a/plugins/manipulator.cpp
+++ b/plugins/manipulator.cpp
@@ -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[1], fg, bg), 1 + name_width + 1 + prof_width + 1 + col, 2);
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;
Screen::paintTile(