Skip to content

Commit 6b245df

Browse files
authored
add some noinit_t placement new fixes
1 parent 9770557 commit 6b245df

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Ext/Building/Body.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ void BuildingExt::ExtData::Serialize(T& Stm)
461461
.Process(this->CurrentLaserWeaponIndex)
462462
.Process(this->PoweredUpToLevel)
463463
.Process(this->EMPulseSW)
464-
.Process(this->OwnerObject()->RepairProgress) // Swizzle can't be used here
465464
;
466465
}
467466

src/Misc/Hooks.BugFixes.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,15 @@ DEFINE_HOOK(0x689EB0, ScenarioClass_ReadMap_SkipHeaderInCampaign, 0x6)
821821

822822
#pragma region save_load
823823

824-
//Skip incorrect load ctor call in various LocomotionClass_Load
824+
//Skip incorrect load ctor call in various Load
825825
DEFINE_JUMP(LJMP, 0x719CBC, 0x719CD8);//Teleport, notorious CLEG frozen state removal on loading game
826826
DEFINE_JUMP(LJMP, 0x72A16A, 0x72A186);//Tunnel, not a big deal
827827
DEFINE_JUMP(LJMP, 0x663428, 0x663445);//Rocket, not a big deal
828828
DEFINE_JUMP(LJMP, 0x5170CE, 0x5170E0);//Hover, not a big deal
829829
DEFINE_JUMP(LJMP, 0x65B3F7, 0x65B416);//RadSite, no effect
830-
830+
DEFINE_JUMP(LJMP, 0x6F4317, 0x6F43AB);
831+
DEFINE_JUMP(LJMP, 0x6F43B5, 0x6F43C7);//Techno (AirstrikeTimer,CloakProgress,TurretRecoil,BarrelRecoil)
832+
DEFINE_JUMP(LJMP, 0x43B694, 0x43B6C3);//Building(RepairProgress)
831833
// Save GameModeOptions in campaign modes
832834
DEFINE_JUMP(LJMP, 0x67E3BD, 0x67E3D3); // Save
833835
DEFINE_JUMP(LJMP, 0x67F72E, 0x67F744); // Load

0 commit comments

Comments
 (0)