mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-25 00:37:24 +02:00
Use bonus only as shared_ptr to avoid memory corruption
This commit is contained in:
@ -110,7 +110,7 @@ class DLL_LINKAGE BoatInstanceConstructor : public CDefaultObjectTypeHandler<CGB
|
||||
protected:
|
||||
void initTypeData(const JsonNode & config) override;
|
||||
|
||||
std::vector<Bonus> bonuses;
|
||||
std::vector<std::shared_ptr<Bonus>> bonuses;
|
||||
EPathfindingLayer layer;
|
||||
bool onboardAssaultAllowed; //if true, hero can attack units from transport
|
||||
bool onboardVisitAllowed; //if true, hero can visit objects from transport
|
||||
|
Reference in New Issue
Block a user