Spells/DetailPage

* fixed rogue reference causing created items to display as a different item

 thx @Rushor for pointing in the right direction
This commit is contained in:
Sarjuuk
2020-02-09 00:49:41 +01:00
parent fc0902d476
commit 163e3d82b0

View File

@@ -332,6 +332,7 @@ abstract class BaseType
{ {
if (isset($this->templates[$id])) if (isset($this->templates[$id]))
{ {
unset($this->curTpl); // kill reference or strange stuff will happen
$this->curTpl = $this->templates[$id]; $this->curTpl = $this->templates[$id];
$this->id = $id; $this->id = $id;
return $this->templates[$id]; return $this->templates[$id];