X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fsettings.h;h=4bc22eaa1e08f47682108872b272a7790dc246d4;hb=347216d654e6f284119d9473db03e3393002b286;hp=af010fe06f48559f1e30c6a6bf1c2a0d99cd64b4;hpb=b65a5aceb0d6552d8ba4878bed5326c614dd3046;p=oweals%2Fminetest.git diff --git a/src/settings.h b/src/settings.h index af010fe06..4bc22eaa1 100644 --- a/src/settings.h +++ b/src/settings.h @@ -78,8 +78,8 @@ public: std::string trimmedline = trim(line); - // Ignore comments - if(trimmedline[0] == '#') + // Ignore empty lines and comments + if(trimmedline.size() == 0 || trimmedline[0] == '#') return true; //infostream<<"trimmedline=\""<