diff --git a/sources/FixLogSpam/SpamTrader/HelperTrader.uc b/sources/FixLogSpam/SpamTrader/HelperTrader.uc index 0171df0..78953af 100644 --- a/sources/FixLogSpam/SpamTrader/HelperTrader.uc +++ b/sources/FixLogSpam/SpamTrader/HelperTrader.uc @@ -63,6 +63,7 @@ protected function Constructor() local LevelInfo level; local ShopVolume nextShop; local WeaponLocker replacementLocker; + level = _server.unreal.GetLevel(); // Get locker replacementLocker = SpawnDummyWeaponLocker(); @@ -124,7 +125,7 @@ private final function WeaponLocker SpawnDummyWeaponLocker() savedCollideActors = class'WeaponLocker'.default.bBlockActors; class'WeaponLocker'.default.bCollideWorld = false; class'WeaponLocker'.default.bBlockActors = false; - lockerInstance = WeaponLocker(_.memory.Allocate(class'WeaponLocker')); + lockerInstance = class'ServerLevelCore'.static.GetInstance().Spawn(class'WeaponLocker'); class'WeaponLocker'.default.bCollideWorld = savedCollideWorld; class'WeaponLocker'.default.bBlockActors = savedCollideActors; if (lockerInstance != none)