From 669bbe3cc7400764b270e080cf604a8a41ea0e1f Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Mon, 27 Apr 2020 01:55:06 +0300 Subject: Workaround for a crash on release --- src/peds/Ped.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/peds/Ped.h b/src/peds/Ped.h index f4caafd8..2de30df6 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -567,6 +567,9 @@ public: bool CanSeeEntity(CEntity*, float); void RestorePreviousObjective(void); void SetIdle(void); +#ifdef _MSC_VER + __declspec(noinline) // workaround for a compiler bug, hooray MS :P +#endif void SetObjective(eObjective, void*); void SetObjective(eObjective); void SetObjective(eObjective, int16, int16); -- cgit v1.2.3