problem with detaching weapon when unequipping

05/21/2018 22:45 Mr. 'Avenue™#1
Hi,
I've tried to do the weapon-costume by myself. Yeah, it's working fine, but now I have problems with Detaching my Main weapon when I unequip it.
[Only registered and activated users can see links. Click Here To Register...]

What could I have forgotten? Or what do I have to change


edit:
Okay, the bug has been fixed. It was due to the following code:
Code:
WORD CHARACTER::GetOriginalPart(BYTE bPartPos) const
{
	switch (bPartPos)
	{
		case PART_MAIN:
			if (!IsPC()) // PC°¡ ¾Æ´Ñ °æ¿ì ÇöÀç ÆÄÆ®¸¦ ±×´ë·Î ¸®ÅÏ
				return GetPart(PART_MAIN);
			else
				return m_pointsInstant.bBasePart;

		case PART_HAIR:
			return GetPart(PART_HAIR);

		//case PART_WEAPON:
		//	return GetPart(PART_WEAPON);

		default:
			return 0;
	}
}
(just commented the case PART_WEAPON:-part out)