Add missing achievement backgrounds

Co-Authored-By: Vlad Loktionov <13555921+VladWinner@users.noreply.github.com>
This commit is contained in:
fed
2023-09-11 21:36:41 +02:00
parent a06044eff2
commit bf55e67abc
8 changed files with 82 additions and 1 deletions

View File

@ -262,7 +262,7 @@ LUI.MenuBuilder.registerType("achievements_menu", function(root, controller)
achievementcontainer:registerEventHandler("mouseenter", function()
Engine.PlaySound(CoD.SFX.MouseOver)
if (background ~= nil) then
if (background ~= nil and achievementtable[i]) then
changebackground(background, false)
else
changebackground("sp_menus_bg_regular", true)