CTD with /echo $target(animation)

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

FlashG
Contributing Member
Contributing Member
Posts: 104
Joined: Thu Jul 11, 2002 6:38 pm

CTD with /echo $target(animation)

Post by FlashG » Sun Dec 14, 2003 9:52 pm

Doing a /echo $target(animation) with no target is a CTD error. Having a target is seems to work fine.

Also it would be nice to have a $target(AnimationText) that return a 1 word description of what is the animation effect.

Flashg

FlashG
Contributing Member
Contributing Member
Posts: 104
Joined: Thu Jul 11, 2002 6:38 pm

Post by FlashG » Tue Dec 30, 2003 11:19 pm

Could one of the devs add a check to the make sure pstarget is not null. See below of the snipit of code I use.


i+=16;

if (!psTarget) {
strcat(szOutput,"0");
} else {
itoa(psTarget->pActorInfo->Animation,szTemp,10);
strcat(szOutput,szTemp);
}


Flashg