This commit is contained in:
aozhiwei 2023-03-20 17:23:16 +08:00
parent 6a08b4bd6b
commit 9f1def6671

View File

@ -28,8 +28,10 @@ void SummonLootBuff::Activate()
1
);
Entity* e = owner->room->GetEntityByUniId(loot_uniid);
if (e) {
if (e && e->IsEntityType(ET_Loot)) {
Loot* loot = (Loot*)e;
loot->pickup_flag = flag;
loot->master = owner->GetWeakPtrRef();
}
}
}