zone/attack.cpp
Code:
- switch (aaHightenedAwareness) {
+ switch (GetAA(aaHightenedAwareness)) {
zone/client.cpp
Code:
SetAdventureID(AF.QuestID);
QueuePacket(outapp);
safe_delete(outapp);
- safe_delete(buffer1);
+ safe_delete_array(buffer1);
zone/client_packet.cpp
Code:
if (boat)
this->BoatID = boat->GetID(); // set the client's BoatID to show that it's on this boat
- safe_delete(boatname);
+ safe_delete_array(boatname);
world/console.cpp
Code:
tcpc->Send((uchar*) buffer, strlen(buffer));
- safe_delete(buffer);
+ safe_delete_array(buffer);
common/packet_dump_file.cpp
Code:
if (k < 8)
logfile << " ";
for (int32 h = k+1; h < cols; h++) {
logfile << " ";
}
logfile << " | " << ascii << endl;
- delete ascii;
+ delete [] ascii;
zone/playercorpse.cpp
Code:
if (dbid == 0)
dbid = database.CreatePlayerCorpse(charid, orgname, zone->GetZoneID(), (uchar*) dbpc, tmpsize, x_pos, y_pos, z_pos, heading);
else
dbid = database.UpdatePlayerCorpse(dbid, charid, orgname, zone->GetZoneID(), (uchar*) dbpc, tmpsize, x_pos, y_pos, z_pos, heading,Rezzed());
- safe_delete(dbpc);
+ safe_delete_array(dbpc);
world/zonelist.cpp
Code:
if(zoneid != 0)
_log(WORLD__ZONELIST,"Rebooting static zone with the ID of: %i",zoneid);
tmp[z]->SendPacket(pack);
delete pack;
- safe_delete(tmp);
+ safe_delete_array(tmp);