View Single Post
  #34  
Old 06-11-2005, 07:52 AM
SuedeWorthey
Sarnak
 
Join Date: Jan 2005
Posts: 64
Default I think I fixed it again...

In pets.cpp Around line 541 or so...
Code:
			MakePet(spell_id, 10, 1, prace, mat, 125, 2*size_mod, 5, 0, 0, petname);
	        cout << "ptype not found: Making default BL pet." << endl;
I changed to: (added return)
Code:
			MakePet(spell_id, 10, 1, prace, mat, 125, 2*size_mod, 5, 0, 0, petname);
	        cout << "ptype not found: Making default BL pet." << endl;
			//begin wsft edit
			return;
			//end wsft edit
In pets.cpp around line 604/605
Code:
		MakePet(spell_id, 59, WARRIOR, 127,0,46,0,2, 0, 0, petname);
I changed to: (added a return and cout info...)...
Code:
		MakePet(spell_id, 59, WARRIOR, 127,0,46,0,2, 0, 0, petname);
		//begin wsft edit
		cout << "I think this was causing the crash..." << endl;
		return;
		//end wsft edit
I think that since MakePet was called and it didn't exit the function that it reached the MakePet at the end and the petstruct wasn't defined because it wasn't recalled from the DB...

-Suede-

Edit:
I am going to put a couple more files on my site:
1: update_zone.rar for updated zone compiles
2: update_world.rar for updated world compiles
3: update_dll.rar for updated emusharemem.dll files

If there are no updated files from the releases posted, there will be no updated .rar

Edit 2:
I am also going to add the date field to the download page.

-Suede-

Last edited by SuedeWorthey; 06-12-2005 at 08:19 AM.. Reason: Update
Reply With Quote