mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Clear the old line buffer when filling the next one in nextLine
This commit is contained in:
committed by
Eldred Habert
parent
379aa8c267
commit
60c03ec1e3
@@ -37,6 +37,7 @@ static int
|
|||||||
retry:
|
retry:
|
||||||
++lineNo;
|
++lineNo;
|
||||||
int firstChar = getc(file);
|
int firstChar = getc(file);
|
||||||
|
lineBuf.clear();
|
||||||
|
|
||||||
switch (firstChar) {
|
switch (firstChar) {
|
||||||
case EOF:
|
case EOF:
|
||||||
|
|||||||
Reference in New Issue
Block a user