From bdfcbb2f0edee2679bfe588df55e9f99bd837510 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 23 Jun 2025 06:34:16 -0300 Subject: `receiving.cc` --- src/info.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/info.cc') diff --git a/src/info.cc b/src/info.cc index 0461356..8f520cf 100644 --- a/src/info.cc +++ b/src/info.cc @@ -399,9 +399,7 @@ Object GetObject(uint32 CreatureID, int x, int y, int z, int RNum, ObjectType Ty error("GetObject: Ungültiger ContainerCode x=%d,y=%d,z=%d,RNum=%d,Type=%d.\n", x, y, z, RNum, Type.TypeID); } - }else if(RNum == -1){ - Obj = GetTopObject(x, y, z, false); - }else{ + }else if(RNum != -1){ Obj = GetFirstObject(x, y, z); while(Obj != NONE){ if(Obj.getObjectType().getDisguise() == Type){ @@ -409,6 +407,8 @@ Object GetObject(uint32 CreatureID, int x, int y, int z, int RNum, ObjectType Ty } Obj = Obj.getNextObject(); } + }else{ + Obj = GetTopObject(x, y, z, false); } // NOTE(fusion): `Type` can be a map container (TypeID = 0) as a wildcard for -- cgit v1.2.3