mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +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 };
|
||||
while (fgets(file_name, 256, load_order) != nullptr) {
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user