diff --git a/Source/Contents/Actors/GameActor.cpp b/Source/Contents/Actors/GameActor.cpp index 46e30454f..b7ccde276 100644 --- a/Source/Contents/Actors/GameActor.cpp +++ b/Source/Contents/Actors/GameActor.cpp @@ -1197,8 +1197,7 @@ void __stdcall CreateHallucinationPc( *reinterpret_cast(argb + 1) = 0xFFFF; argb[0] = 0xFF; - CRenderObject* object = hallu; - static_cast(g_modeMgr.GetGameMode())->scene->objects.push_back(object); + static_cast(g_modeMgr.GetGameMode())->scene->objects.push_back(hallu); delete pc; } diff --git a/Source/Linkage/Source/Contents/Actors/GameActor.cpp.h b/Source/Linkage/Source/Contents/Actors/GameActor.cpp.h new file mode 100644 index 000000000..51efc3fb4 --- /dev/null +++ b/Source/Linkage/Source/Contents/Actors/GameActor.cpp.h @@ -0,0 +1,7 @@ +#pragma once + +#include + +class CRenderObject; + +extern template void std::list::push_back(CRenderObject*&&);