diff options
| author | Quietust | 2012-09-12 13:42:16 -0500 |
|---|---|---|
| committer | Quietust | 2012-09-12 13:42:16 -0500 |
| commit | c9d73cb6fb846a7e1b5befcb13d1712c0cce831a (patch) | |
| tree | 8c5b67b854d767345a4a10bf9bb2f5d1840b05cc /plugins/manipulator.cpp | |
| parent | 46321a6a01ba4fff79992c7bde26c812b14fd382 (diff) | |
| download | dfhack-c9d73cb6fb846a7e1b5befcb13d1712c0cce831a.tar.gz dfhack-c9d73cb6fb846a7e1b5befcb13d1712c0cce831a.tar.bz2 dfhack-c9d73cb6fb846a7e1b5befcb13d1712c0cce831a.tar.xz | |
Fix crash bug when using manipulator in Arena mode
Diffstat (limited to 'plugins/manipulator.cpp')
| -rw-r--r-- | plugins/manipulator.cpp | 2 |
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( |
