diff --git a/dlls/nodes.cpp b/dlls/nodes.cpp index 4afadce40..495d2f62d 100644 --- a/dlls/nodes.cpp +++ b/dlls/nodes.cpp @@ -2477,7 +2477,10 @@ int CGraph::FLoadGraph( const char *szMapName ) length -= sizeof(CLink_Retail) * m_cLinks; if( length < 0 ) goto ShortFile; - reinterpret_cast(pMemFile) -> copyOverTo(m_pLinkPool); + for (int j = 0; j < m_cLinks; ++j) + { + reinterpret_cast(pMemFile + sizeof(CLink_Retail) * j) -> copyOverTo(m_pLinkPool + j); + } pMemFile += sizeof(CLink_Retail) * m_cLinks; } #endif