From 5fa743861d500b5c2d7bb95b110724d1c4bbdd64 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Tue, 22 Aug 2023 03:11:42 +0700 Subject: [PATCH] Change to adapt to new AcediaCore --- sources/FixLogSpam/SpamTrader/HelperTrader.uc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)