Browse Source

Fix issue with `MemoryAPI` actor spawning

`MemoryAPI`'s `Allocate()` crashed on non-acedia actors, this patch
resolves that issue.
pull/8/head
Anton Tarasenko 4 years ago
parent
commit
6271129d41
  1. 2
      sources/Memory/MemoryAPI.uc

2
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 pools did not work - spawn / create object through regular methods
if (allocatedObject == none) if (allocatedObject == none)
{ {
actorClassToAllocate = class<AcediaActor>(classToAllocate); actorClassToAllocate = class<Actor>(classToAllocate);
if (actorClassToAllocate != none) if (actorClassToAllocate != none)
{ {
allocatedObject = class'CoreService'.static allocatedObject = class'CoreService'.static

Loading…
Cancel
Save