mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-27 14:08:00 +03:00
Fix crash caused by an bug of nav_file.cpp
This commit is contained in:
parent
eb75d2eae1
commit
34e5ceb637
@ -467,8 +467,9 @@ NavErrorType CNavArea::PostLoad()
|
||||
{
|
||||
for (auto connect : m_connect[d])
|
||||
{
|
||||
connect.area = TheNavAreaGrid.GetNavAreaByID(connect.id);
|
||||
if (connect.id && connect.area == NULL)
|
||||
auto id = connect.id;
|
||||
connect.area = TheNavAreaGrid.GetNavAreaByID(id);
|
||||
if (id && connect.area == NULL)
|
||||
{
|
||||
CONSOLE_ECHO("ERROR: Corrupt navigation data. Cannot connect Navigation Areas.\n");
|
||||
error = NAV_CORRUPT_DATA;
|
||||
|
Loading…
x
Reference in New Issue
Block a user