diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-27 01:55:06 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-27 01:55:06 +0300 |
commit | 669bbe3cc7400764b270e080cf604a8a41ea0e1f (patch) | |
tree | b6161265c8d2cf3e2e6870895d5511f905ccf3a8 | |
parent | a069aa57dba36603b44ae282765fd8352ddd3a3d (diff) |
Workaround for a crash on release
-rw-r--r-- | src/peds/Ped.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |