Stanzilla / WoWUIBugs

World of Warcraft UI Bug Tracker
166 stars 7 forks source link

UnitPosition returns incorrect number of values inside instances #522

Closed Meorawr closed 8 months ago

Meorawr commented 8 months ago

In patch 10.2.5 UnitPosition returns an incorrect number of values inside instanced content, resulting in the instanceID return value (at position 4) actually being returned at position 2 in the result list.

UnitPosition has the following signature:

posY, posX, posZ, instanceID = UnitPosition(unit)

This effectively results in UnitPosition having two return signatures based upon whether or not you're in an instance, which breaks any code reliant upon the instanceID return value being 4th in the list.

Meorawr commented 8 months ago

Fixed as of 10.2.5.53007.