fix: 유산 포인트 반영시 ownerID가 아니라 generalID 를 사용하는 버그
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
@@ -1029,7 +1029,7 @@ function checkEmperior()
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
$genObj->mergeTotalInheritancePoint(true);
|
$genObj->mergeTotalInheritancePoint(true);
|
||||||
applyInheritanceUser($genObj->getID());
|
applyInheritanceUser($genObj->getVar('owner'));
|
||||||
$genObj->clearInheritancePoint();
|
$genObj->clearInheritancePoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -652,7 +652,7 @@ class General implements iAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->mergeTotalInheritancePoint();
|
$this->mergeTotalInheritancePoint();
|
||||||
applyInheritanceUser($this->getID());
|
applyInheritanceUser($this->getVar('owner'));
|
||||||
$this->clearInheritancePoint();
|
$this->clearInheritancePoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user