mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Ignore CR in source line
This commit is contained in:
parent
7c5c34741c
commit
f9487b0ba3
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
===========================================================================
|
||||
Copyright (C) 2015 the OpenMoHAA team
|
||||
Copyright (C) 2023 the OpenMoHAA team
|
||||
|
||||
This file is part of OpenMoHAA source code.
|
||||
|
||||
|
@ -68,7 +68,7 @@ bool AbstractScript::GetSourceAt(size_t sourcePos, str *sourceLine, int& column,
|
|||
}
|
||||
}
|
||||
|
||||
while (*p != '\0' && *p != '\n') {
|
||||
while (*p != '\0' && (*p != '\r' && *p != '\n')) {
|
||||
p++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue