From cd6b26da5db7ef5422b510ba141ab924aaec71bf Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 2 Feb 2026 22:00:39 -0300 Subject: minor tweaks --- src/objects.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/objects.cc') diff --git a/src/objects.cc b/src/objects.cc index 18fe01c..9130fb2 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -281,8 +281,9 @@ uint32 ObjectType::getAttribute(TYPEATTRIBUTE Attribute){ int ObjectType::getAttributeOffset(INSTANCEATTRIBUTE Attribute){ if(!this->getFlag(InstanceAttributeFlags[Attribute])){ - // TODO(fusion): Review this? - if(Attribute != CONTENT || !this->getFlag(CHEST)){ + // NOTE(fusion): The CONTENT attribute seems to be the only one that maps + // to two object flags, which is why we have this extra check here. + if(!(Attribute == CONTENT && this->getFlag(CHEST))){ return -1; } } @@ -608,7 +609,7 @@ static void LoadConversionList(void){ // NOTE(fusion): Creature container. OldGroup[99] = 250; - OldNumber[00] = 0; + OldNumber[99] = 0; NewType[GetNewTypeIndex(250, 0)] = 99; } -- cgit v1.2.3