SAGA2: Use correct arguments for implementAction

This commit is contained in:
a/ 2021-08-12 18:44:26 +09:00
parent 50ba1c613d
commit 722d6e960f

View File

@ -3541,7 +3541,7 @@ void MotionTask::castSpellAction(void) {
if (spellObj) {
if (flags & TAGTarg) {
assert(targetTAG->_data.itemType == activeTypeInstance);
spellObj->implementAction(spellObj->getSpellID(), a->thisID(), targetTAG->thisID());
spellObj->implementAction(spellObj->getSpellID(), a->thisID(), targetTAG);
} else if (flags & LocTarg) {
spellObj->implementAction(spellObj->getSpellID(), a->thisID(), targetLoc);
} else if (targetObj) {