Core/Battlefield: Fix memory leak
This commit is contained in:
1 parent
01c1066370
commit
9d7dd36531
2 files changed
+7
No files matched your search
@@ -39,6 +39,12 @@ enum WGVehicles
|
||||
NPC_WG_CATAPULT = 27881,
|
||||
};
|
||||
|
||||
BattlefieldWG::~BattlefieldWG()
|
||||
{
|
||||
for (Workshop::const_iterator itr = WorkshopsList.begin(); itr != WorkshopsList.end(); ++itr)
|
||||
delete *itr;
|
||||
}
|
||||
|
||||
bool BattlefieldWG::SetupBattlefield()
|
||||
{
|
||||
InitStalker(BATTLEFIELD_WG_NPC_STALKER, WintergraspStalkerPos[0], WintergraspStalkerPos[1], WintergraspStalkerPos[2], WintergraspStalkerPos[3]);
|
||||
|
||||
@@ -273,6 +273,7 @@ class WintergraspCapturePoint : public BfCapturePoint
|
||||
class BattlefieldWG : public Battlefield
|
||||
{
|
||||
public:
|
||||
~BattlefieldWG();
|
||||
/**
|
||||
* \brief Called when the battle start
|
||||
* - Spawn relic and turret
|
||||
|
||||
Reference in new issue
Block a user