1
0

feat: finish one rule in BMapInspector.

- finish one rule in BMapInspector.
- fix CKObjectManager find object by name feature.
This commit is contained in:
2026-02-04 17:03:53 +08:00
parent e6e714f2c9
commit c11220d54b
14 changed files with 268 additions and 19 deletions

View File

@@ -185,8 +185,8 @@ namespace LibCmo::CK2::MgrImpls {
}
// iterate all sub object and check name
for (const auto& objoff : m_ObjectsListByClass[i]) {
ObjImpls::CKObject* obj = m_ObjectsList[objoff];
for (const auto& objid : m_ObjectsListByClass[i]) {
ObjImpls::CKObject* obj = m_ObjectsList[Id2Offset(objid)];
if (name == nullptr) {
// directly add