From 1abe4e2e74471965e9fa95f9ffe5019fe2dadb0a Mon Sep 17 00:00:00 2001 From: Sombra <26506177+Sombra0xCC@users.noreply.github.com> Date: Wed, 16 Feb 2022 18:23:17 +0200 Subject: [PATCH] fix exEntitySpawner --- src/reverse/RTTIExtender.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reverse/RTTIExtender.cpp b/src/reverse/RTTIExtender.cpp index 53feac2c..bd793119 100644 --- a/src/reverse/RTTIExtender.cpp +++ b/src/reverse/RTTIExtender.cpp @@ -231,7 +231,7 @@ struct TEMP_SpawnSettings void SetRecordID(const RED4ext::TweakDBID acTweakDBID) { // Copied from the function photomode uses to spawn 3rd person puppet - using TFunc = void (*)(const RED4ext::TweakDBID&, RED4ext::Handle&); + using TFunc = void (*)(const RED4ext::TweakDBID, RED4ext::Handle&); static GameCall func(CyberEngineTweaks::Addresses::CPhotoMode_SetRecordID); DONOTUSE_recordDBID = acTweakDBID; @@ -281,7 +281,7 @@ struct TEMP_Spawner RED4ext::ent::EntityID Spawn(const RED4ext::CName acEntityPath, TEMP_SpawnSettings& aSettings) { // REDSmartPtr TEMP_Spawner::func(this, TEMP_SpawnSettings&, RED4ext::CName&) - using TFunc = void (*)(TEMP_Spawner*, REDSmartPtr*, TEMP_SpawnSettings&, const RED4ext::CName&); + using TFunc = void (*)(TEMP_Spawner*, REDSmartPtr*, TEMP_SpawnSettings&, const RED4ext::CName); static GameCall func(CyberEngineTweaks::Addresses::gameIGameSystem_Spawn); REDSmartPtr pendingEntity;