mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-02 22:05:43 +02:00
Fix possible crash on corrupted h3 data / vcmi config
This commit is contained in:
parent
ed2825d4f2
commit
cfac768b6e
@ -500,7 +500,7 @@ std::vector<std::string> CIdentifierStorage::getModsWithFailedRequests() const
|
|||||||
std::vector<std::string> result;
|
std::vector<std::string> result;
|
||||||
|
|
||||||
for (const auto & request : failedRequests)
|
for (const auto & request : failedRequests)
|
||||||
if (!vstd::contains(result, request.localScope))
|
if (!vstd::contains(result, request.localScope) && ModScope::isScopeReserved(request.localScope))
|
||||||
result.push_back(request.localScope);
|
result.push_back(request.localScope);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user