• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

ThingType::getRealSize() not working as intended?

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?

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
 
Back
Top