From 6271129d418b7c5e10d702b5338246fd6c07d385 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Mon, 8 Mar 2021 01:29:08 +0700 Subject: [PATCH] Fix issue with `MemoryAPI` actor spawning `MemoryAPI`'s `Allocate()` crashed on non-acedia actors, this patch resolves that issue. --- sources/Memory/MemoryAPI.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Memory/MemoryAPI.uc b/sources/Memory/MemoryAPI.uc index 341f651..03a09f5 100644 --- a/sources/Memory/MemoryAPI.uc +++ b/sources/Memory/MemoryAPI.uc @@ -90,7 +90,7 @@ public final function Object Allocate( // If pools did not work - spawn / create object through regular methods if (allocatedObject == none) { - actorClassToAllocate = class(classToAllocate); + actorClassToAllocate = class(classToAllocate); if (actorClassToAllocate != none) { allocatedObject = class'CoreService'.static