Fix crash in YAPF for road vehicles when tile limit exceeded

See: #723
This commit is contained in:
Jonathan G Rennison 2024-07-23 18:28:08 +01:00
parent ce84b8995a
commit 8bc0e01330

View File

@ -207,7 +207,7 @@ public:
/* move to the next tile */
tile = F.m_new_tile;
trackdir = new_td;
if (tiles > MAX_RV_PF_TILES) break;
if (tiles > MAX_RV_PF_TILES) return false;
}
/* save end of segment back to the node */