Skip to content

Commit

Permalink
Merge pull request #651 from 0xSombra/exEntitySpawner-fix
Browse files Browse the repository at this point in the history
fix exEntitySpawner
  • Loading branch information
Yamashi authored Feb 16, 2022
2 parents 6611e68 + 1abe4e2 commit 0b08cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reverse/RTTIExtender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<RED4ext::IScriptable>&);
using TFunc = void (*)(const RED4ext::TweakDBID, RED4ext::Handle<RED4ext::IScriptable>&);
static GameCall<TFunc> func(CyberEngineTweaks::Addresses::CPhotoMode_SetRecordID);

DONOTUSE_recordDBID = acTweakDBID;
Expand Down Expand Up @@ -281,7 +281,7 @@ struct TEMP_Spawner
RED4ext::ent::EntityID Spawn(const RED4ext::CName acEntityPath, TEMP_SpawnSettings& aSettings)
{
// REDSmartPtr<TEMP_PendingEntity::Unk00> TEMP_Spawner::func(this, TEMP_SpawnSettings&, RED4ext::CName&)
using TFunc = void (*)(TEMP_Spawner*, REDSmartPtr<TEMP_PendingEntity::Unk00>*, TEMP_SpawnSettings&, const RED4ext::CName&);
using TFunc = void (*)(TEMP_Spawner*, REDSmartPtr<TEMP_PendingEntity::Unk00>*, TEMP_SpawnSettings&, const RED4ext::CName);
static GameCall<TFunc> func(CyberEngineTweaks::Addresses::gameIGameSystem_Spawn);

REDSmartPtr<TEMP_PendingEntity::Unk00> pendingEntity;
Expand Down

0 comments on commit 0b08cdc

Please sign in to comment.