Fix broken dialogue Function_HealthPercent

This commit is contained in:
scrawl 2014-09-11 19:19:38 +02:00
parent d4007ad89e
commit e54ba2c5d1

View file

@ -249,7 +249,7 @@ bool MWDialogue::Filter::testSelectStructNumeric (const SelectWrapper& select) c
float ratio = mActor.getClass().getCreatureStats (mActor).getHealth().getCurrent() /
mActor.getClass().getCreatureStats (mActor).getHealth().getModified();
return select.selectCompare (ratio);
return select.selectCompare (static_cast<int>(ratio*100));
}
default: