Skip to content

Commit 2f4a59e

Browse files
committed
Use Lua length operator for class count
1 parent 816554a commit 2f4a59e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AddOns/!!!ClassicAPI/Util/Constants.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ CLASS_SORT_ORDER = {
8484
"WARLOCK",
8585
"HUNTER",
8686
};
87-
MAX_CLASSES = table.getn(CLASS_SORT_ORDER);
87+
MAX_CLASSES = #CLASS_SORT_ORDER;
8888

8989
LOCALIZED_CLASS_NAMES_MALE = {};
9090
LOCALIZED_CLASS_NAMES_FEMALE = {};

0 commit comments

Comments
 (0)