1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 03:57:14 +01:00

Fix worng script callback triggered from previously added event (pickup world change).

This commit is contained in:
Sandu Liviu Catalin 2016-08-19 18:00:23 +03:00
parent 102c77aa77
commit f92dcab92a

View File

@ -712,8 +712,8 @@ void Core::EmitObjectAlpha(Int32 object_id, Int32 old_alpha, Int32 new_alpha, In
void Core::EmitPickupWorld(Int32 pickup_id, Int32 old_world, Int32 new_world)
{
PickupInst & _pickup = m_Pickups.at(pickup_id);
Emit(_pickup.mOnRespawn, old_world, new_world);
Emit(mOnPickupRespawn, _pickup.mObj, old_world, new_world);
Emit(_pickup.mOnWorld, old_world, new_world);
Emit(mOnPickupWorld, _pickup.mObj, old_world, new_world);
}
// ------------------------------------------------------------------------------------------------