diff options
author | aap <aap@papnet.eu> | 2021-01-08 13:51:42 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-08 13:51:42 +0100 |
commit | 8be05679249367b39bcee1e07d6831d11918210b (patch) | |
tree | ab13259d150966afc431656d0db65c5870561c3d /src/render | |
parent | 824ca7599ce380a12af0f42b892b7994b31e8f96 (diff) |
little fixes
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Timecycle.cpp | 5 |
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++; } |