Opened 12 years ago

Closed 12 years ago

#1199 closed defect (fixed)

Barter.js error when exchanging resources

Reported by: Pureon Owned by: vts
Priority: Release Blocker Milestone: Alpha 9
Component: UI & Simulation Keywords:
Cc: Patch:

Description

This is the error message:

ERROR: Failed to call ProcessCommand() global script function ERROR: JavaScript error: simulation/components/Barter.js line 60

TypeError: cmpIdentity is null

(3)@simulation/components/Barter.js:60 (3,"food","metal",100)@simulation/components/Barter.js:84 ProcessCommand(1,[object Object])@simulation/helpers/Commands.js:424

ERROR: Failed to call ProcessCommand() global script function

To replicate - on the new Istmus map, as player 1 hele, build a market and try to exchange resources

Change History (1)

comment:1 by vts, 12 years ago

Owner: set to vts
Resolution: fixed
Status: newclosed

In 11309:

Fixed missing cmpIdentity null check in Barter.js:60 (causes failure on Isthmus when territory_pull entity is iterated over). Fixes #1199.

Note: See TracTickets for help on using tickets.