mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Tasks] Crash fix with data input sanitization (#2629)
This commit is contained in:
@@ -232,7 +232,9 @@ bool TaskManager::LoadTasks(int single_task)
|
||||
);
|
||||
|
||||
for (auto &&e : zones) {
|
||||
ad->zone_ids.push_back(std::stoi(e));
|
||||
if (Strings::IsNumber(e)) {
|
||||
ad->zone_ids.push_back(std::stoi(e));
|
||||
}
|
||||
}
|
||||
|
||||
ad->optional = a.optional;
|
||||
|
||||
Reference in New Issue
Block a user