fix: 유산 포인트가 0이어도 동작

This commit is contained in:
2022-07-30 12:15:07 +09:00
parent f8448fbb51
commit e041080773
+1 -1
View File
@@ -121,7 +121,7 @@ class InheritancePointManager
$gameStor = KVStorage::getStorage(DB::db(), 'game_env');
if ($storeType === true || ($gameStor->isunited != 0 && !$forceCalc)) {
$inheritStor = KVStorage::getStorage(DB::db(), "inheritance_{$ownerID}");
[$value, $aux] = $inheritStor->getValue($key);
[$value, $aux] = $inheritStor->getValue($key) ?? [0, null];
return $value;
}