ItemProp inside ModelMng.cpp

09/30/2016 17:30 raventh1984#1
Hi elitepvpers,

I have reduced some of my files an bit by removing the m/f parts inside mdldyna.inc for the Armor models.

Example:
So instead of II_ARM_M_VAG_BOOTS and II_ARM_F_VAG_BOOTS i now have only II_ARM_VAG_BOOTS.

inside ModelMng.cpp i have insert an snippet at MakeParts name so that it checks on what to load for male and or female.

Now i run in an bit of an snag.

The cloaks doesnt work the same cause some have MaleCloak instead of mCloak.

So i thought well how about an check if an item is an cloack or not.

So i put it like this
ItemProp* pItemProp;
if(pItemProp != NULL) { Do the rest of the Code }
However the pItemProp is always NULL.

Am i missing somewhat? Atm i dont see it haha.

Hope you guys/girls can put me in the right direction.

With kind regards.
09/30/2016 17:44 Mike Oxmaul#2
initializing the pItemProp pointer?
thanks please
09/30/2016 18:24 alfredico#3
ItemProp* _prop = prj.GetItemProp(iObject);
09/30/2016 18:28 raventh1984#4
Solved. Thanks Jupsi haha. Missed that

Edit: Jupsi was first Alfredico xD. But indeed it was this
ItemProp* pItemProp = prj.GetItemProp(dwIndex)