Skip to content

Commit

Permalink
Added ';' to safe_delete_array(data) in ~BulkZoneSpawnPacket()
Browse files Browse the repository at this point in the history
  • Loading branch information
Uleat committed Mar 6, 2015
1 parent bd9665e commit c96ee79
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zone/entity.cpp
Expand Up @@ -2737,15 +2737,15 @@ void EntityList::WriteEntityIDs()

BulkZoneSpawnPacket::BulkZoneSpawnPacket(Client *iSendTo, uint32 iMaxSpawnsPerPacket)
{
data = 0;
data = nullptr;
pSendTo = iSendTo;
pMaxSpawnsPerPacket = iMaxSpawnsPerPacket;
}

BulkZoneSpawnPacket::~BulkZoneSpawnPacket()
{
SendBuffer();
safe_delete_array(data)
safe_delete_array(data);
}

bool BulkZoneSpawnPacket::AddSpawn(NewSpawn_Struct *ns)
Expand All @@ -2764,7 +2764,8 @@ bool BulkZoneSpawnPacket::AddSpawn(NewSpawn_Struct *ns)
return false;
}

void BulkZoneSpawnPacket::SendBuffer() {
void BulkZoneSpawnPacket::SendBuffer()
{
if (!data)
return;

Expand Down

0 comments on commit c96ee79

Please sign in to comment.