Skip to content

Commit 724b011

Browse files
committed
2 parents 5a3f215 + c0e62fa commit 724b011

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/modules/players/players_entity.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,14 +688,14 @@ void PlayerMixin::SetActiveDevices(unsigned char value)
688688

689689
float PlayerMixin::GetSuitPowerLoad()
690690
{
691-
static int offset = FindNetworkPropertyOffset("m_flSuitPowerLoad");
692-
return GetNetworkPropertyByOffset<float>(offset);
691+
static int offset = FindDatamapPropertyOffset("m_flSuitPowerLoad");
692+
return GetDatamapPropertyByOffset<float>(offset);
693693
}
694694

695695
void PlayerMixin::SetSuitPowerLoad(float value)
696696
{
697-
static int offset = FindNetworkPropertyOffset("m_flSuitPowerLoad");
698-
SetNetworkPropertyByOffset<float>(offset, value);
697+
static int offset = FindDatamapPropertyOffset("m_flSuitPowerLoad");
698+
SetDatamapPropertyByOffset<float>(offset, value);
699699
}
700700

701701

0 commit comments

Comments
 (0)