fix: 유산 포인트 반영시 ownerID가 아니라 generalID 를 사용하는 버그

This commit is contained in:
2021-12-11 22:56:08 +09:00
parent e30aff8ca2
commit 1ab5fcb36f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -27,6 +27,6 @@ foreach ($db->queryFirstColumn(
foreach(General::createGeneralObjListFromDB($db->queryFirstColumn('SELECT `no` FROM general WHERE npc = 0')) as $genObj){ foreach(General::createGeneralObjListFromDB($db->queryFirstColumn('SELECT `no` FROM general WHERE npc = 0')) as $genObj){
$genObj->mergeTotalInheritancePoint(true); $genObj->mergeTotalInheritancePoint(true);
applyInheritanceUser($genObj->getID()); applyInheritanceUser($genObj->getVar('owner'));
$genObj->clearInheritancePoint(); $genObj->clearInheritancePoint();
} }
+1 -1
View File
@@ -1029,7 +1029,7 @@ function checkEmperior()
}; };
} }
$genObj->mergeTotalInheritancePoint(true); $genObj->mergeTotalInheritancePoint(true);
applyInheritanceUser($genObj->getID()); applyInheritanceUser($genObj->getVar('owner'));
$genObj->clearInheritancePoint(); $genObj->clearInheritancePoint();
} }
+1 -1
View File
@@ -652,7 +652,7 @@ class General implements iAction
} }
$this->mergeTotalInheritancePoint(); $this->mergeTotalInheritancePoint();
applyInheritanceUser($this->getID()); applyInheritanceUser($this->getVar('owner'));
$this->clearInheritancePoint(); $this->clearInheritancePoint();
} }