Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions extensions/olcPGEX_Graphics3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

Author
~~~~~~
David Barr, aka javidx9, �OneLoneCoder 2018
David Barr, aka javidx9, �OneLoneCoder 2018
*/


Expand Down Expand Up @@ -925,10 +925,16 @@ namespace olc
char c = s.get();
if (c == ' ' || c == '/')
{
if (tokens[nTokenCount].size() > 0)
// nTokenCount starts in -1
if (nTokenCount > 0)
{
nTokenCount++;
if (tokens[nTokenCount].size() > 0)
{
nTokenCount++;
}
}
else
nTokenCount++;
}
else
tokens[nTokenCount].append(1, c);
Expand Down