Ignore CR in source line

This commit is contained in:
smallmodel 2023-11-01 16:52:49 +01:00
parent 7c5c34741c
commit f9487b0ba3
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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++;
}