feat(world): set mem handle when allocating entities
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run

This commit is contained in:
fallenoak 2026-01-22 16:42:59 -06:00
parent fe06d5e820
commit 948da084b0
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -39,6 +39,7 @@ CMapEntity* CMap::AllocEntity(int32_t a1) {
if (ObjectAlloc(*CMap::s_entityHeap, &memHandle, &mem, false)) {
entity = new (mem) CMapEntity();
entity->m_memHandle = memHandle;
} else {
entity = nullptr;
}