mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-05 20:55:59 +00:00
CPoiToWorldLoader: Make use of unsigned stream utilities
This commit is contained in:
parent
be97a39778
commit
53881d1748
@ -3,12 +3,12 @@
|
||||
std::unique_ptr<CPoiToWorld> CPoiToWorldLoader::LoadEGMC(IInputStream& rEGMC, CResourceEntry *pEntry)
|
||||
{
|
||||
auto pOut = std::make_unique<CPoiToWorld>(pEntry);
|
||||
uint32 NumMappings = rEGMC.ReadLong();
|
||||
const uint32 NumMappings = rEGMC.ReadULong();
|
||||
|
||||
for (uint32 iMap = 0; iMap < NumMappings; iMap++)
|
||||
{
|
||||
uint32 MeshID = rEGMC.ReadLong();
|
||||
uint32 InstanceID = rEGMC.ReadLong() & 0x03FFFFFF;
|
||||
const uint32 MeshID = rEGMC.ReadULong();
|
||||
const uint32 InstanceID = rEGMC.ReadULong() & 0x03FFFFFF;
|
||||
pOut->AddPoiMeshMap(InstanceID, MeshID);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user