Quantcast

Fix bug in r1206 in the way that slot <--> action mappings are managed.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-04-21 05:01:46
Author local date 2014-04-21 05:01:46 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-04-21 05:01:46
Committer local date 2014-04-21 05:01:46 +0000
Commit 6e7e4a14b0ec84d25ecfe36682c30a66f8ed73a6
Tree 0dd5ace6e2007d11a0f615f5317133bda61a4a2a
Parent 9c1c9e8e05a00779f93fc526189c1022805f0a82
Fix bug in r1206 in the way that slot <--> action mappings are managed.

The spell/item/macro to slot ID mapping wasn't correctly being added due
to an improper condition.  Now add the mapping if it either doesn't
already exist or if the new slot ID is lower than the existing one (in the
case where a spell is present multiple times on the action bar).

This fixes the return values of the :GetForSpell(), :GetForMacro(), and
:GetForIem() methods to return something other than nil.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1298 d5049fe3-3747-40f7-a4b5-f36d6801af5f