Fixed crash when recieving a bounce without any tags

This commit is contained in:
Jerom Venneker
2025-07-10 20:23:49 +02:00
parent 6df2fd9b8a
commit e272300245

View File

@@ -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;