mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Actually fix load order line ending bug
This commit is contained in:
parent
995a4527da
commit
b4837011ea
@ -960,7 +960,8 @@ void LuaParser::ReloadQuests() {
|
|||||||
char file_name[256] = { 0 };
|
char file_name[256] = { 0 };
|
||||||
while (fgets(file_name, 256, load_order) != nullptr) {
|
while (fgets(file_name, 256, load_order) != nullptr) {
|
||||||
for (int i = 0; i < 256; ++i) {
|
for (int i = 0; i < 256; ++i) {
|
||||||
if (file_name[i] == '\n') {
|
auto c = file_name[i];
|
||||||
|
if (c == '\n' || c == '\r' || c == ' ') {
|
||||||
file_name[i] = 0;
|
file_name[i] = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user