mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-06 05:06:08 +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)
|
std::unique_ptr<CPoiToWorld> CPoiToWorldLoader::LoadEGMC(IInputStream& rEGMC, CResourceEntry *pEntry)
|
||||||
{
|
{
|
||||||
auto pOut = std::make_unique<CPoiToWorld>(pEntry);
|
auto pOut = std::make_unique<CPoiToWorld>(pEntry);
|
||||||
uint32 NumMappings = rEGMC.ReadLong();
|
const uint32 NumMappings = rEGMC.ReadULong();
|
||||||
|
|
||||||
for (uint32 iMap = 0; iMap < NumMappings; iMap++)
|
for (uint32 iMap = 0; iMap < NumMappings; iMap++)
|
||||||
{
|
{
|
||||||
uint32 MeshID = rEGMC.ReadLong();
|
const uint32 MeshID = rEGMC.ReadULong();
|
||||||
uint32 InstanceID = rEGMC.ReadLong() & 0x03FFFFFF;
|
const uint32 InstanceID = rEGMC.ReadULong() & 0x03FFFFFF;
|
||||||
pOut->AddPoiMeshMap(InstanceID, MeshID);
|
pOut->AddPoiMeshMap(InstanceID, MeshID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user