1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Implemented visit mode "limiter". Fixed h3m variable loading

This commit is contained in:
Ivan Savenko
2023-09-30 21:22:31 +03:00
parent fd01a25352
commit a3b2354481
9 changed files with 37 additions and 13 deletions

View File

@ -102,7 +102,7 @@ int SetResourcesProxy::getAmount(lua_State * L)
if(!S.tryGet(1, object))
return S.retVoid();
auto type = EGameResID::INVALID;
auto type = EGameResID::NONE;
if(!S.tryGet(2, type))
return S.retVoid();
@ -122,7 +122,7 @@ int SetResourcesProxy::setAmount(lua_State * L)
if(!S.tryGet(1, object))
return S.retVoid();
auto type = EGameResID::INVALID;
auto type = EGameResID::NONE;
if(!S.tryGet(2, type))
return S.retVoid();