Quantcast

Change internal implementation of spell lists.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-06-10 21:34:22
Author local date 2013-06-10 21:34:22 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-06-10 21:34:22
Committer local date 2013-06-10 21:34:22 +0000
Commit 5e6f6b3bb7cd87a7cfeccd1135ae02cfca2ad384
Tree 0b38282534564ca6b7c527fa559dfcd06d18f956
Parent 7a77e180593f1b33bd615a9c860f5b34a97b521a
Change internal implementation of spell lists.

Move internal representation of spell lists from lists whose values are
the spell IDs to tables indexed by spell IDs with a default value of
"true".  This makes it easier to do the most common operation, which is to
check whether a given spell ID is in the spell list -- we can now do a
simple table lookup instead of walking the list.

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