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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user