bad argument to 'insert' (table expected, got nil) #3

Fermé
créé 2019-10-12 22:35:24 +02:00 par Albirew · 2 commentaires
Propriétaire

when trying to create a new bar:
Message: Interface\AddOns\ButtonForge-classic\Util.lua:737: bad argument #1 to 'insert' (table expected, got nil)

when trying to create a new bar: Message: Interface\AddOns\ButtonForge-classic\Util.lua:737: bad argument #1 to 'insert' (table expected, got nil)
Auteur
Propriétaire

PM from xfsbill at Curse:

Yes, there's still a bunch of errors left to fix. Those "table expected" errors are probably the variable that wasn't initialized to = {}

## PM from xfsbill at Curse: Yes, there's still a bunch of errors left to fix. Those "table expected" errors are probably the variable that wasn't initialized to = {}
Albirew a créé une dépendance 2019-10-15 15:54:51 +02:00.
Albirew a ajouté le label
bug
2019-10-20 22:16:30 +02:00.
Albirew s'est assigné ça 2019-10-20 22:16:45 +02:00.
Auteur
Propriétaire

content of Util.lua:733-739:
if (not BarSave) then
BarSave = Util.NewBarSave();
BarSave["Left"] = Left;
BarSave["Top"] = Top;
table.insert(ButtonForgeSave.Bars, BarSave); --#line 737
PlaySound(177, "Master");
end

content of [Util.lua:733-739](https://dock.albirew.ga/gitea/Albirew/ButtonForge-classic/src/branch/master/Util.lua#L737): if (not BarSave) then BarSave = Util.NewBarSave(); BarSave["Left"] = Left; BarSave["Top"] = Top; table.insert(ButtonForgeSave.Bars, BarSave); --#line 737 PlaySound(177, "Master"); end
Albirew a fermé ce ticket 2019-10-20 23:43:29 +02:00.
Connectez-vous pour rejoindre cette conversation.
Sans jalon
Sans assignation
1 participants
Notifications
Échéance
La date d’échéance est invalide ou hors plage. Veuillez utiliser le format 'aaaa-mm-dd'.

Aucune échéance n'a été définie.

Bloque
#4 Addon is not working in classic WoW
Albirew/ButtonForge-classic
Référence : Albirew/ButtonForge-classic#3
Sans contenu.