• R/O
  • SSH
  • HTTPS

gtaconfig: Commit


Commit MetaInfo

Revision43 (tree)
Zeit2020-02-16 07:23:29
Autorquiret

Log Message

- improved CSyntax::ParseTokenOfType by restoring seek if token of different type was found

Ändern Zusammenfassung

Diff

--- include/gtaconfig/syntax.h (revision 42)
+++ include/gtaconfig/syntax.h (revision 43)
@@ -549,7 +549,11 @@
549549 return nullptr;
550550
551551 if ( tokType != expectType )
552+ {
553+ // If we failed due to type then we must NOT pollute the parser by trashing the seek.
554+ this->DecreaseSeek( tokLen );
552555 return nullptr;
556+ }
553557
554558 *len = tokLen;
555559 return tok;
Show on old repository browser