Fixed crash when recieving a bounce without any tags
This commit is contained in:
@@ -213,6 +213,7 @@ bool ArchipelagoClient::StartClient() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
apClient->set_bounced_handler([&](const nlohmann::json data) {
|
apClient->set_bounced_handler([&](const nlohmann::json data) {
|
||||||
|
if(data.contains("tags")) {
|
||||||
std::list<std::string> tags = data["tags"];
|
std::list<std::string> tags = data["tags"];
|
||||||
bool deathLink = (std::find(tags.begin(), tags.end(), "DeathLink") != tags.end());
|
bool deathLink = (std::find(tags.begin(), tags.end(), "DeathLink") != tags.end());
|
||||||
|
|
||||||
@@ -228,6 +229,7 @@ bool ArchipelagoClient::StartClient() {
|
|||||||
isDeathLinkedDeath = true;
|
isDeathLinkedDeath = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user