Skip to content

Commit

Permalink
Fix reading links when the graph version is different from retail
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jan 18, 2025
1 parent 0dd8f1b commit d132705
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dlls/nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2475,7 +2475,10 @@ int CGraph::FLoadGraph( const char *szMapName )
length -= sizeof(CLink_Retail) * m_cLinks;
if( length < 0 )
goto ShortFile;
reinterpret_cast<CLink_Retail*>(pMemFile) -> copyOverTo(m_pLinkPool);
for (int j = 0; j < m_cLinks; ++j)
{
reinterpret_cast<CLink_Retail*>(pMemFile + sizeof(CLink_Retail) * j) -> copyOverTo(m_pLinkPool + j);
}
pMemFile += sizeof(CLink_Retail) * m_cLinks;
}
#endif
Expand Down

0 comments on commit d132705

Please sign in to comment.