From b7db2a12d499c1c1bd3667b00ab1553588c29885 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Thu, 26 Aug 2021 01:24:31 +0300 Subject: keep noinline only for broken vs versions --- src/peds/Ped.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/peds') diff --git a/src/peds/Ped.h b/src/peds/Ped.h index f5a7d7dc..26cdf03f 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -712,7 +712,9 @@ public: void RestorePreviousObjective(void); void SetIdle(void); #ifdef _MSC_VER +#if _MSC_VER >= 1920 && _MSC_VER < 1929 __declspec(noinline) // workaround for a compiler bug, hooray MS :P +#endif #endif void SetObjective(eObjective, void*); void SetObjective(eObjective); -- cgit v1.2.3