Several small bugfixes

- Wrong image in generic lever dialog
- Crash in adventure notes dialog
- Incorrect spell costs shown on second page of spellcasting dialog
- Enable messages in "if context" node, but only for legacy scenarios
- Fix recorded dialogue not working
- Fix special items leaking between scenarios
- Fix training dialog
- Fix scenario editor sometimes crashing on scenarios that it wrote itself
This commit is contained in:
2016-09-26 20:23:09 -04:00
parent 5c095fb284
commit 9aed4b418f
8 changed files with 9 additions and 6 deletions

View File

@@ -476,7 +476,7 @@ static bool spend_xp_event_filter(cDialog& me, std::string item_hit, eKeyMod mod
for(int i = 0; i <= 20; i++) {
std::string id_base = boost::lexical_cast<std::string>(eSkill(i));
if(item_hit.length() < id_base.length() + 2) continue;
if(id_base.compare(0, id_base.length(), item_hit)) {
if(id_base.compare(0, id_base.length(), item_hit) == 0) {
which_skill = eSkill(i);
break;
}