aboutsummaryrefslogtreecommitdiff
path: root/src/info.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-23 06:34:16 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-23 06:34:16 -0300
commitbdfcbb2f0edee2679bfe588df55e9f99bd837510 (patch)
tree4aea2b1039ea4988debd054c024eefe9c3021dc4 /src/info.cc
parentc4dfe97e95846b43c578b3be35d0ef69f9b50e94 (diff)
downloadgame-bdfcbb2f0edee2679bfe588df55e9f99bd837510.tar.gz
game-bdfcbb2f0edee2679bfe588df55e9f99bd837510.zip
`receiving.cc`
Diffstat (limited to 'src/info.cc')
-rw-r--r--src/info.cc6
1 files changed, 3 insertions, 3 deletions
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