diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 11:26:32 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 11:26:32 +0200 |
commit | a827f0dd559331d756f57ddf63e535d100503ab2 (patch) | |
tree | 30e72a7fb5ab5fe27bf9b0f810486854c0814991 /src/vehicles/Plane.cpp | |
parent | more car control (diff) | |
parent | CClumpModelInfo; little fixes (diff) | |
download | re3-a827f0dd559331d756f57ddf63e535d100503ab2.tar re3-a827f0dd559331d756f57ddf63e535d100503ab2.tar.gz re3-a827f0dd559331d756f57ddf63e535d100503ab2.tar.bz2 re3-a827f0dd559331d756f57ddf63e535d100503ab2.tar.lz re3-a827f0dd559331d756f57ddf63e535d100503ab2.tar.xz re3-a827f0dd559331d756f57ddf63e535d100503ab2.tar.zst re3-a827f0dd559331d756f57ddf63e535d100503ab2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Plane.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Plane.cpp b/src/vehicles/Plane.cpp index 71189d84..39069364 100644 --- a/src/vehicles/Plane.cpp +++ b/src/vehicles/Plane.cpp @@ -806,7 +806,7 @@ CPlane::LoadPath(char const *filename, int32 &numNodes, float &totalLength, bool for(i = 0; i < numNodes; i++){ *gString = '\0'; - for(lp = 0; work_buff[bp] != '\n'; bp++, lp++) + for(lp = 0; work_buff[bp] != '\n' && work_buff[bp] != '\0'; bp++, lp++) gString[lp] = work_buff[bp]; bp++; // BUG: game doesn't terminate string |