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:
yyc12345 committed 2023-09-26 20:51:16 +08:00
1 parent 42b9ddaec6
commit b217da8fb8
5 files changed
+31 -14

No files matched your search

+2 -2
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();
}