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) {
|
||||
if(data.contains("tags")) {
|
||||
std::list<std::string> tags = data["tags"];
|
||||
bool deathLink = (std::find(tags.begin(), tags.end(), "DeathLink") != tags.end());
|
||||
|
||||
@@ -228,6 +229,7 @@ bool ArchipelagoClient::StartClient() {
|
||||
isDeathLinkedDeath = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user