keep noinline only for broken vs versions

This commit is contained in:
Nikolay Korolev 2021-08-26 01:24:31 +03:00
parent 5017e09dd0
commit 885467bcd0
1 changed files with 2 additions and 0 deletions

View File

@ -574,7 +574,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);