Never serialize an event when it's not owned

This commit is contained in:
phosit 2025-09-25 14:47:42 +02:00
parent 2f86d4a2f8
commit c4dd0040ee
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -173,14 +173,11 @@ AIProxy.prototype.GetRepresentation = function()
AIProxy.prototype.NotifyChange = function()
{
if (this.needsFullGet)
{
// not yet notified, be sure that the owner is set before doing so
// as the Create event is sent only on first ownership changed
const cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership);
if (!cmpOwnership || cmpOwnership.GetOwner() < 0)
return false;
}
// not yet notified, be sure that the owner is set before doing so
// as the Create event is sent only on first ownership changed
const cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership);
if (!cmpOwnership || cmpOwnership.GetOwner() < 0)
return false;
if (!this.changes)
{