TheStarport/FLHook

Wrong Datatype for XFireWeapon hpIds

Closed this issue · 1 comments

XFireWeapon is defined with a st6::list<ushort> for hpIds in Hook 4. This however wrong (also because it simply breaks the execution of the program).

Thanks to Schmackbolzen I could understand:

struct XFireWeaponInfo
{
    uint iDunno1;
    Vector vDirection;
    uint iDunno2;
    short *sArray1;
    short *sArray2;
    short *s3;
};

sArray1 -> Address of the first Element
sArray2 -> Address of the last Element (first element + size() )
s3 -> Address of the end of the Capacity of the Vector.