/selectitem (and others that use this) crash fix

General announcements relating to the modularized MacroQuest2 system.

Moderator: MacroQuest Developers

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

/selectitem (and others that use this) crash fix

Post by Lax » Tue Mar 02, 2004 5:46 pm

The bug actually resides in this, make the highlighted change

MQ2Utilities.cpp, around line 1008

Code: Select all

PEQCONTAINERWINDOW FindContainerForContents(PCONTENTS pContents)
{
   if (!ppContainerMgr || !pContainerMgr) return NULL;
   PEQ_CONTAINERWND_MANAGER pMgr = (PEQ_CONTAINERWND_MANAGER)pContainerMgr;

   for (int j = 0; j < 25; j++)
   {
      [color=red]if (pMgr->pPCContainers[j] && (pMgr->pPCContainers[j]->pContents == pContents))[/color]
         return (pMgr->pPCContainers[j]);
   }
   return NULL;
}
This will be in my next cvs commit.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0