From f9c7e3426f2ccc60f96aeafeda0d1b7d0d5f29a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valdir=20da=20Costa=20J=C3=BAnior?= Date: Thu, 14 Jan 2021 21:54:45 -0300 Subject: [PATCH] Fix CPed m_nCreatedBy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If Open Limit Adjuster is installed, some weird value is returned due to the next 3 bytes. Works fine now, for both — installed or not. https://forum.mixmods.com.br/f285-help-with-the-game/t5351-sa-help-open-limit-adjuster-bug-and-glowing-pickup --- plugin_sa/game_sa/CPed.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin_sa/game_sa/CPed.h b/plugin_sa/game_sa/CPed.h index a35e9f8b..80249e55 100644 --- a/plugin_sa/game_sa/CPed.h +++ b/plugin_sa/game_sa/CPed.h @@ -201,7 +201,8 @@ class PLUGIN_API CPed : public CPhysical { } m_nPedFlags; CPedIntelligence *m_pIntelligence; CPlayerData *m_pPlayerData; - unsigned int m_nCreatedBy; + unsigned char m_nCreatedBy; + char field_485[3]; AnimBlendFrameData *m_apBones[19]; unsigned int m_nAnimGroup; CVector2D m_vecAnimMovingShiftLocal;