1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

convert ResourceSet to std::map

This commit is contained in:
Laserlicht
2025-09-15 23:48:55 +02:00
parent abed555528
commit 134c145b98
6 changed files with 22 additions and 23 deletions

View File

@@ -82,7 +82,7 @@ int SetResourcesProxy::getAmount(lua_State * L)
S.clear();
const TQuantity amount = vstd::atOrDefault(object->res, static_cast<size_t>(type), 0);
const TQuantity amount = object->res[type];
S.push(amount);
return 1;
}