fix some issue

- remove unnecessary macro in BMap, Unvirt and IronPad.
- add mtl slots display for mesh.
- fix potential nullptr issue in CKStateChunk buffer reader.
This commit is contained in:
2023-09-26 20:51:16 +08:00
parent 42b9ddaec6
commit b217da8fb8
5 changed files with 31 additions and 14 deletions

View File

@ -337,8 +337,8 @@ namespace LibCmo::CK2 {
}
CKStateChunk::Buffer_t CKStateChunk::ReadBufferWrapper() {
void* cache;
CKDWORD size;
void* cache = nullptr;
CKDWORD size = 0;
if (!ReadBuffer(&cache, &size)) {
return Buffer_t();
}