summaryrefslogtreecommitdiffstats
path: root/src/render/Timecycle.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-08 13:51:42 +0100
committeraap <aap@papnet.eu>2021-01-08 13:51:42 +0100
commit8be05679249367b39bcee1e07d6831d11918210b (patch)
treeab13259d150966afc431656d0db65c5870561c3d /src/render/Timecycle.cpp
parentwtf (diff)
downloadre3-8be05679249367b39bcee1e07d6831d11918210b.tar
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.gz
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.bz2
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.lz
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.xz
re3-8be05679249367b39bcee1e07d6831d11918210b.tar.zst
re3-8be05679249367b39bcee1e07d6831d11918210b.zip
Diffstat (limited to '')
-rw-r--r--src/render/Timecycle.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/Timecycle.cpp b/src/render/Timecycle.cpp
index b20a2443..70926c1a 100644
--- a/src/render/Timecycle.cpp
+++ b/src/render/Timecycle.cpp
@@ -172,8 +172,9 @@ CTimeCycle::Initialise(void)
for(w = 0; w < NUMWEATHERS; w++)
for(h = 0; h < NUMHOURS; h++){
li = 0;
- while(work_buff[bi] == '/'){
- while(work_buff[bi] != '\n')
+ while(work_buff[bi] == '/' || work_buff[bi] == '\n' ||
+ work_buff[bi] == '\0' || work_buff[bi] == ' ' || work_buff[bi] == '\r'){
+ while(work_buff[bi] != '\n' && work_buff[bi] != '\0' && work_buff[bi] != '\r')
bi++;
bi++;
}