From 392d7fa5a6008909a36778c8d81d0438376a919c Mon Sep 17 00:00:00 2001 From: TheApadayo Date: Thu, 29 Dec 2016 19:29:35 -0500 Subject: [PATCH] [MapEnts] Add fake stage 0 to fully custom ends --- src/Components/Modules/AssetInterfaces/IMapEnts.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Components/Modules/AssetInterfaces/IMapEnts.cpp b/src/Components/Modules/AssetInterfaces/IMapEnts.cpp index bbcf2fab..27493484 100644 --- a/src/Components/Modules/AssetInterfaces/IMapEnts.cpp +++ b/src/Components/Modules/AssetInterfaces/IMapEnts.cpp @@ -33,6 +33,10 @@ namespace Assets else { entites->name = builder->getAllocator()->duplicateString(Utils::String::VA("maps/mp/%s.d3dbsp", name)); + entites->stageCount = 1; + entites->stages = builder->getAllocator()->allocate(); + entites->stages[0].stageName = "stage 0"; + entites->stages[0].flags = 0x10400; } entites->entityString = builder->getAllocator()->duplicateString(ents.getBuffer());