darkshin
New old member
- Joined
- Dec 14, 2010
- Messages
- 231
- Reaction score
- 22
Hello Guys!
I am trying to use the function getRealSize() from thingtype.cpp that should return the crop size of a outfit, but its returning me the value Zero. I am doing something wrong within the codes or is it just not working as intended?
I am trying to use the function getRealSize() from thingtype.cpp that should return the crop size of a outfit, but its returning me the value Zero. I am doing something wrong within the codes or is it just not working as intended?
Code:
//
ThingTypePtr sprite = g_things.getThingType(m_outfit.getAuxId(), m_outfit.getCategory());
int realSize = sprite->getRealSize();
// OR
ThingTypePtr sprite = g_things.rawGetThingType(m_outfit.getAuxId(), m_outfit.getCategory());
int realSize = sprite->getRealSize();
BOTH
g_logger.traceInfo(stdext::format("RealSize: %d", realSize));
//Printing 0