Having Issues with EVENT_GROUP_CHANGE
After my home server died, I set up a new temporary server where I had to install everything from scratch. I copied the database over, and am running the latest code as of last night (with Bots). Every time I zone or log out, the zone I was in crashes when it is being destroyed. I finally got debugging set up and the call stack contains the following: Zone::RemoveAllMobs(), Bot::~Bot(), Bot::RemoveBotFromGroup(), Group::DelMember(), Mob::SetGrouped(), Parser::Event(EVENT_GROUP_CHANGE), Parser::EventCommon(EVENT_GROUP_CHANGE), then a couple string functions, then some _debug functions, where it finally says that there is a null pointer. At least as far as DelMember and, SetGrouped, Mob* is not null, and I believe Mob* being passed into Event and EventCommon is not null as well.
This is the line of code that's being called:
parse->Event(EVENT_GROUP_CHANGE, 0, "", (NPC*)NULL, this->CastToClient()); where 'this' is my character.
MySQL 5.0, Perl 5.10.1 build 1007 or 1008, EqEmu Rev 1786, SoD client
I had been running Rev 1751, which also includes the EVENT_GROUP_CHANGE, which was added in Rev 1735 and wasn't having any problems, so I'm not sure what is different.
At first I thought it was some custom code I had added, but I ran base EqEMU code and the problem persists.
Anyone have any ideas what I'm missing?
|