From 476305be3bf0fee6ba7805747d418b4ebae528fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Zi=C4=99ba?= Date: Sun, 16 Oct 2022 20:22:50 +0200 Subject: [PATCH] Fix for #5406: broken scoop mission --- src/CargoBody.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CargoBody.cpp b/src/CargoBody.cpp index 7974f688dab..08e47dffe8a 100644 --- a/src/CargoBody.cpp +++ b/src/CargoBody.cpp @@ -127,7 +127,7 @@ bool CargoBody::OnCollision(Body *b, Uint32 flags, double relVel) { // ignore collision if its about to be scooped if (b->IsType(ObjectType::SHIP)) { - int cargoscoop_cap = Properties().Get("cargo_scoop_cap"); + int cargoscoop_cap = b->Properties().Get("cargo_scoop_cap"); if (cargoscoop_cap > 0) { LuaEvent::Queue("onCargoDestroyed", this); return true;