diff --git a/dlls/nodes.cpp b/dlls/nodes.cpp index 28fc7144f..74565ebaa 100644 --- a/dlls/nodes.cpp +++ b/dlls/nodes.cpp @@ -2475,7 +2475,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