diff --git a/dGame/dUtilities/SlashCommandHandler.cpp b/dGame/dUtilities/SlashCommandHandler.cpp index c7b7b052..34ae013c 100644 --- a/dGame/dUtilities/SlashCommandHandler.cpp +++ b/dGame/dUtilities/SlashCommandHandler.cpp @@ -1977,7 +1977,12 @@ namespace DEVGMCommands { auto newEntity = Game::entityManager->CreateEntity(info); if (newEntity == nullptr) { + ChatPackets::SendSystemMessage(sysAddr, u"Failed to spawn entity."); + return; } + + Game::entityManager->ConstructEntity(newEntity); + numberToSpawn--; } }