From 163e3d82b0e7c9a474604b46a13afbff1ee95833 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 9 Feb 2020 00:49:41 +0100 Subject: [PATCH] Spells/DetailPage * fixed rogue reference causing created items to display as a different item thx @Rushor for pointing in the right direction --- includes/basetype.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/basetype.class.php b/includes/basetype.class.php index 15b4d1b4..114aa089 100644 --- a/includes/basetype.class.php +++ b/includes/basetype.class.php @@ -332,6 +332,7 @@ abstract class BaseType { if (isset($this->templates[$id])) { + unset($this->curTpl); // kill reference or strange stuff will happen $this->curTpl = $this->templates[$id]; $this->id = $id; return $this->templates[$id];