Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2009, 08:48 AM
tsowl
Fire Beetle
 
Join Date: Jul 2004
Posts: 8
Default misc fix

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);
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:05 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3