mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
fix
This commit is contained in:
@@ -18,7 +18,11 @@
|
|||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
ResourceSet::ResourceSet() = default;
|
ResourceSet::ResourceSet()
|
||||||
|
{
|
||||||
|
for(int i = 0; i < GameConstants::RESOURCE_QUANTITY; i++)
|
||||||
|
container[i] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
ResourceSet::ResourceSet(const JsonNode & node)
|
ResourceSet::ResourceSet(const JsonNode & node)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public:
|
|||||||
#define vectorOperator(OPSIGN) \
|
#define vectorOperator(OPSIGN) \
|
||||||
ResourceSet& operator OPSIGN ## =(const ResourceSet &rhs) \
|
ResourceSet& operator OPSIGN ## =(const ResourceSet &rhs) \
|
||||||
{ \
|
{ \
|
||||||
for(auto i = 0; i < container.size(); i++) \
|
for(auto i = 0; i < rhs.size(); i++) \
|
||||||
container[GameResID(i)] OPSIGN ## = rhs[i]; \
|
container[GameResID(i)] OPSIGN ## = rhs[i]; \
|
||||||
\
|
\
|
||||||
return *this; \
|
return *this; \
|
||||||
|
|||||||
Reference in New Issue
Block a user