mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r26796) -Fix: reading of high byte of "ASCII" files yielded a negative int8, then casted to an uint32 which caused the Squirrel lexer to bail out. Regardless... the file isn't actually ASCII, but that's beyond the point for now
This commit is contained in:
parent
599a5a1969
commit
9cbdd45751
@ -382,7 +382,7 @@ public:
|
||||
|
||||
static WChar _io_file_lexfeed_ASCII(SQUserPointer file)
|
||||
{
|
||||
char c;
|
||||
unsigned char c;
|
||||
if (((SQFile *)file)->Read(&c, sizeof(c), 1) > 0) return c;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user