1
This commit is contained in:
parent
6a08b4bd6b
commit
9f1def6671
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user