diff --git a/DebugUtils/Source/RecastDump.cpp b/DebugUtils/Source/RecastDump.cpp index 7663fc7..2093825 100644 --- a/DebugUtils/Source/RecastDump.cpp +++ b/DebugUtils/Source/RecastDump.cpp @@ -350,7 +350,7 @@ bool duReadCompactHeightfield(struct rcCompactHeightfield& chf, duFileIO* io) io->read(&chf.walkableHeight, sizeof(chf.walkableHeight)); io->read(&chf.walkableClimb, sizeof(chf.walkableClimb)); - io->write(&chf.borderSize, sizeof(chf.borderSize)); + io->read(&chf.borderSize, sizeof(chf.borderSize)); io->read(&chf.maxDistance, sizeof(chf.maxDistance)); io->read(&chf.maxRegions, sizeof(chf.maxRegions));