Files 1
Downloads 65,402
Favorites 109
View Bug Report
Global Variable Naming Conventions
Bug #: 2245
File: Champion Point Respec
Date: 05/31/18 03:28 PM
By: fritzOSU03
Status: Fixed
The following elements are created in the public function ChampionPointRespec:createWindow().

Lua Code:
  1. comboBox = WINDOW_MANAGER:GetControlByName("ChampPointRespecWindow1", "Dropdown")
  2. m_comboBox = comboBox.m_comboBox

As a result, these global elements with generic names take priority over those with the same, generic name in local functions for all other loaded addons. Changing these to unique named elements such as 'CPR_comboBox' and 'CPR_m_comboBox' will likely resolve possible future conflicts.