From 1b27156227641dd9b84340988d5306730b3491cc Mon Sep 17 00:00:00 2001 From: Flamanis Date: Wed, 3 Mar 2021 15:40:43 -0600 Subject: [PATCH] Fix for weird segment bug when swapping segments When using a custom display that uses a spell, this line sets a numerical value to the `class` key, which conflicts with the default Details metatable `:class()` function that I ensure is on every custom object. Honestly, this is such a niche bug that it's stupid it happens. But when it does happen, no new segments are created. Soo, fix. --- classes/class_custom.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/classes/class_custom.lua b/classes/class_custom.lua index 3fca5023..c55b4ba5 100644 --- a/classes/class_custom.lua +++ b/classes/class_custom.lua @@ -821,7 +821,6 @@ actor.nome = spellname actor.name = spellname actor.classe = actor.spellschool - actor.class = actor.spellschool class = actor.spellschool local index = self._NameIndexTable [actor.nome]