From 337eddcc0b8d059c276edf67e17e265e95f2d8a2 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 1 Mar 2025 16:13:44 +0100 Subject: [PATCH] Fixup/Spells * fixed variable reuse --- includes/types/spell.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/types/spell.class.php b/includes/types/spell.class.php index a3a51599..65c30d11 100644 --- a/includes/types/spell.class.php +++ b/includes/types/spell.class.php @@ -2124,11 +2124,11 @@ class SpellList extends BaseType { if ($addMask & GLOBALINFO_RELATED) { - foreach (ChrClass::fromMask($this->curTpl['reqClassMask']) as $id) - $data[Type::CHR_CLASS][$id] = $id; + foreach (ChrClass::fromMask($this->curTpl['reqClassMask']) as $cId) + $data[Type::CHR_CLASS][$cId] = $cId; - foreach (ChrRace::fromMask($this->curTpl['reqRaceMask']) as $id) - $data[Type::CHR_RACE][$id] = $id; + foreach (ChrRace::fromMask($this->curTpl['reqRaceMask']) as $rId) + $data[Type::CHR_RACE][$rId] = $rId; // play sound effect for ($i = 1; $i < 4; $i++)