1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

ResourceSet: resolve .at troubles

This commit is contained in:
Konstantin
2023-03-31 14:12:38 +03:00
parent c1fd7309ad
commit 6d17b9342d
4 changed files with 13 additions and 13 deletions

View File

@@ -137,7 +137,7 @@ int SetResourcesProxy::setAmount(lua_State * L)
if(!S.tryGet(3, amount))
return S.retVoid();
object->res.at(typeIdx) = amount;
object->res[typeIdx] = amount;
return S.retVoid();
}