Skip to content

Commit

Permalink
Fixed LUA error (with empty config)
Browse files Browse the repository at this point in the history
  • Loading branch information
Softrix committed Oct 9, 2023
1 parent b9138ca commit c496227
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 4 additions & 1 deletion SmartBuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3218,7 +3218,10 @@ function SMARTBUFF_Options_Init(self)
InitBuffOrder(true);
end

if (SMARTBUFF_OptionsGlobal == nil) then SMARTBUFF_OptionsGlobal = { }; end
if (SMARTBUFF_OptionsGlobal == nil) then
SMARTBUFF_OptionsGlobal = { };
SMARTBUFF_BuffOrderReset();
end
OG = SMARTBUFF_OptionsGlobal;
if (OG.SplashIcon == nil) then OG.SplashIcon = true; end
if (OG.SplashMsgShort == nil) then OG.SplashMsgShort = false; end
Expand Down
2 changes: 1 addition & 1 deletion SmartBuff.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 30402
## Title: |TInterface\Addons\Smartbuff\Icons\IconEnabled:0|t SmartBuff |cffffffff(WOTLK)|r by |cff00ff00Codermik & Aeldra|r
## Version: 51.30402
## Version: 52.30402
## Author: |cff20d2ffCodermik & Aeldra|r (EU-Proudmoore)
## Contributing Author: |cff20d2ffSpeedwaystar
## Notes: Cast the most important buffs on you or party/raid members/pets. Use /sbm for options menu.
Expand Down
7 changes: 2 additions & 5 deletions localization.en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
SMARTBUFF_WHATSNEW = "\n\n"
.." |cff00e0ffClassic & Retail versions by Codermik with additional\n"
.." retail coding by Speedwaystar.\n\n"
.." |cffffffffChanges in r51.071023 (WOTLK Classic):\n\n"
.." * Fixed default configuration for Thorns.\n"
.." * Fixed Priest Inner Fire reminder.\n"
.." * Fixed Buff order not being saved.\n"
.." * Other fixes and improvements.\n"
.." |cffffffffChanges in r52.091023 (WOTLK Classic):\n\n"
.." * Fixed lua error on new installs (when config empty).\n"
.."\n\n"
.." |cffffff00I currently play on the Mirage Raceway EU classic\n"
.." WOTLK server as Alliance, I play on Mik, Gabella,\n"
Expand Down

0 comments on commit c496227

Please sign in to comment.