ralian / eai

Enfusion Artifical Intelligence for DayZ and future Bohemia Interactive games.
Apache License 2.0
68 stars 27 forks source link

In some cases function OnUpdate is called before the reference m_eAI_Manager is created #12

Closed BorizzK closed 3 years ago

BorizzK commented 3 years ago

https://github.com/ralian/eai/blob/cad0310af165f13aa354e67d1c17bfc9f0a067a7/Scripts/3_Game/eAI/DayZGame.c#L28

BorizzK commented 3 years ago

Also spam on client

NULL pointer to instance Class: 'DayZGame' Function: 'OnUpdate' Stack trace: eAI/Scripts/3_Game/eai\dayzgame.c:28

ralian commented 3 years ago

Yes, sorry, that null check used to be there, I added it back.