Changes between Initial Version and Version 1 of Ticket #6377


Ignore:
Timestamp:
Nov 10, 2021, 10:18:16 PM (2 years ago)
Author:
Langbart
Comment:

Adding the referenced line of code from the error to the description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6377 – Description

    initial v1  
    1313I will attach the replay as a zip file, I have never seen this error before.
    1414
     15[https://code.wildfiregames.com/source/0ad/browse/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js;25860$6143 Line 6143] in Unitai.js at [25860]
     16
     17{{{
     18#!js lineno=6137
     19UnitAI.prototype.RememberTargetPosition = function(orderData)
     20{
     21        if (!orderData)
     22                orderData = this.order.data;
     23        let cmpPosition = Engine.QueryInterface(orderData.target, IID_Position);
     24        if (cmpPosition && cmpPosition.IsInWorld())
     25                orderData.lastPos = cmpPosition.GetPosition();
     26};
     27}}}