mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-24 00:36:29 +02:00
vcmi: massive refactoring v1
This commit is contained in:
@@ -102,7 +102,7 @@ int SetResourcesProxy::getAmount(lua_State * L)
|
||||
if(!S.tryGet(1, object))
|
||||
return S.retVoid();
|
||||
|
||||
Res::ERes type = Res::ERes::INVALID;
|
||||
auto type = EGameResID::INVALID;
|
||||
|
||||
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();
|
||||
|
||||
Res::ERes type = Res::ERes::INVALID;
|
||||
auto type = EGameResID::INVALID;
|
||||
|
||||
if(!S.tryGet(2, type))
|
||||
return S.retVoid();
|
||||
|
||||
Reference in New Issue
Block a user