Serialize the isIdleConfirmed for the AI

The AI only noticed for changes to `isIdleConfirmed`. That is done to
avoid recursions and don't send to many messages. But when the AI is
deserialized it get's `isIdle` from the simulation. Leading to an OOS.
This commit is contained in:
phosit 2026-02-18 18:32:09 +01:00
parent be03605eac
commit 6d31e6de89
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -95,7 +95,7 @@ function getFullRepresentation(entityID)
if (cmpUnitAI)
{
// Updated by OnUnitIdleChanged
ret.idle = cmpUnitAI.IsIdle();
ret.idle = !!cmpUnitAI.isIdleConfirmed;
// Updated by OnUnitStanceChanged
ret.stance = cmpUnitAI.GetStanceName();
// Updated by OnUnitAIStateChanged