fixed parser bug that prevented loading binary data strings
This commit is contained in:
parent
6ec54c5f67
commit
85a7d66cb2
2 changed files with 14 additions and 4 deletions
|
@ -12,6 +12,7 @@ Version 1.4.2+svn:
|
|||
* campaignd
|
||||
* made campaign server use gzip compression for networking
|
||||
* miscellaneous and bug fixes:
|
||||
* fixed parser bug that prevented loading binary data strings
|
||||
* starting a campaing without any installed now gives an error.
|
||||
* fixed issues with campaign info in non-compressed saved games
|
||||
(bug #11386)
|
||||
|
|
|
@ -156,10 +156,19 @@ const token& tokenizer::next_token()
|
|||
break;
|
||||
if(current_ == '"' && peek_char() == '"')
|
||||
next_char_fast();
|
||||
if (current_ == 254) {
|
||||
skip_comment();
|
||||
--lineno_;
|
||||
continue;
|
||||
if (current_ == 254 &&
|
||||
(peek_char() == 'l' || peek_char() == 't')) {
|
||||
next_char_fast();
|
||||
if ((current_ == 'l' && peek_char() == 'i') || (current_ == 't' && peek_char() == 'e'))
|
||||
{
|
||||
skip_comment();
|
||||
--lineno_;
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
token_.value += 254;
|
||||
}
|
||||
}
|
||||
|
||||
token_.value += current_;
|
||||
|
|
Loading…
Add table
Reference in a new issue