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

@@ -875,7 +875,7 @@ void readScenarioFromXml(ticpp::Document&& data, cScenario& scenario) {
if(num_storage >= 10)
throw xBadNode(type, edit->Row(), edit->Column(), fname);
int num_items = 0;
std::set<std::string> reqs = {"on-terrain", "is-property", "item"};
std::set<std::string> reqs = {"on-terrain", "is-property"};
Iterator<Element> store;
for(store = store.begin(edit.Get()); store != store.end(); store++) {
store->GetValue(&type);