Workaround for a crash on release

This commit is contained in:
Sergeanur 2020-04-27 01:55:06 +03:00
parent a069aa57db
commit 669bbe3cc7
1 changed files with 3 additions and 0 deletions

View File

@ -567,6 +567,9 @@ public:
bool CanSeeEntity(CEntity*, float); bool CanSeeEntity(CEntity*, float);
void RestorePreviousObjective(void); void RestorePreviousObjective(void);
void SetIdle(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*);
void SetObjective(eObjective); void SetObjective(eObjective);
void SetObjective(eObjective, int16, int16); void SetObjective(eObjective, int16, int16);