Opened 8 years ago

Last modified 6 years ago

#4291 closed defect

Doubleclicking on the hero button shows wrong building — at Initial Version

Reported by: elexis Owned by:
Priority: Should Have Milestone: Alpha 23
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

If a hero receives a garrison order on the same turn when it garrisons another building, doubleclicking on the hero button will show the building that isn't garrisoned by the hero.

It is easily reproducible by starting a multiplayergame, pressing F9, typing Engine.SetTurnLength(1000), sending a garrison command to one building and then sending another command one second before the unit garrisons.

The reason is the GUI function getEntityOrHolder only checking for the most recent garrison command.

Change History (2)

by elexis, 8 years ago

Attachment: commands.txt added

by elexis, 8 years ago

Saving the garrison holder entity ID in UnitAI.isGarrisoned this way doesn't affect the outcome at all, it still saves the wrong ID.

Note: See TracTickets for help on using tickets.