mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Use bonus only as shared_ptr to avoid memory corruption
This commit is contained in:
@@ -91,7 +91,7 @@ public:
|
||||
std::vector<HeroTypeID> loadHeroes(const JsonNode & value);
|
||||
std::vector<HeroClassID> loadHeroClasses(const JsonNode & value);
|
||||
|
||||
static std::vector<Bonus> loadBonuses(const JsonNode & value);
|
||||
static std::vector<std::shared_ptr<Bonus>> loadBonuses(const JsonNode & value);
|
||||
};
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
Reference in New Issue
Block a user