Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-02-2003, 02:27 PM
Merth
Dragon
 
Join Date: May 2003
Location: Seattle, WA
Posts: 609
Default

Yeah, it was a bug in the code. The next version to be pushed out to CVS will fix it.

Here's the code changed in worldserver.cpp if you want to copy (looks like you already caught it though):
Code:
case 0x2010:{
	if(!ZoneLoaded)
		break;
		WhoAllReturnStruct* wars= (WhoAllReturnStruct*)pack->pBuffer;
	if (wars && wars->id!=0 && wars->id<0xFFFFFFFF){
		Client* client = entity_list.GetClientByID(wars->id);
		if (client) {
			APPLAYER* outapp = new APPLAYER(0x0212, pack->size);
			memcpy(outapp->pBuffer, pack->pBuffer, pack->size);
			client->QueuePacket(outapp);
		}
		else {
			LogFile->write(EQEMuLog::Debug, "Error: WhoAllReturnStruct did not point to a valid client!  "
				"id=%i, playerineqstring=%i, playersinzonestring=%i.  Dumping WhoAllReturnStruct:",
				wars->id, wars->playerineqstring, wars->playersinzonestring);
			DumpPacket(pack);
		}
	}
	else
		LogFile->write(EQEMuLog::Error, "WhoAllReturnStruct: Could not get return struct!");
	break;
}
This is just a sanity check type fix because I don't know this area of code. The problem still exists, but at least it won't crash the code anymore.
Reply With Quote
 

Thread Tools
Display Modes

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 06:58 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3