summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-26 12:10:08 +0200
committeraap <aap@papnet.eu>2020-05-26 12:10:08 +0200
commitdfa95002aa1813f1d2f68172f32f748d83b47d2c (patch)
treed73be9762914262a8326f65c6cfee68b7046d67b /src/render
parentMerge pull request #588 from blingu/miami (diff)
downloadre3-dfa95002aa1813f1d2f68172f32f748d83b47d2c.tar
re3-dfa95002aa1813f1d2f68172f32f748d83b47d2c.tar.gz
re3-dfa95002aa1813f1d2f68172f32f748d83b47d2c.tar.bz2
re3-dfa95002aa1813f1d2f68172f32f748d83b47d2c.tar.lz
re3-dfa95002aa1813f1d2f68172f32f748d83b47d2c.tar.xz
re3-dfa95002aa1813f1d2f68172f32f748d83b47d2c.tar.zst
re3-dfa95002aa1813f1d2f68172f32f748d83b47d2c.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Timecycle.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/Timecycle.cpp b/src/render/Timecycle.cpp
index 28156c7e..bf55d7bc 100644
--- a/src/render/Timecycle.cpp
+++ b/src/render/Timecycle.cpp
@@ -175,7 +175,11 @@ CTimeCycle::Initialise(void)
bi++;
bi++;
}
- while(work_buff[bi] != '\n' || work_buff[bi] != '\0')
+ while(work_buff[bi] != '\n'
+#ifdef FIX_BUGS
+ && work_buff[bi] != '\0'
+#endif
+ )
line[li++] = work_buff[bi++];
line[li] = '\0';
bi++;