mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Some MSVC fixes
This commit is contained in:
parent
c910ead4db
commit
c8211ceb3e
3 changed files with 14 additions and 11 deletions
|
@ -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=\""<<trimmedline<<"\""<<std::endl;
|
||||
|
@ -189,8 +189,8 @@ public:
|
|||
if(is.eof() == false)
|
||||
line_end = "\n";
|
||||
|
||||
// Ignore comments
|
||||
if(trimmedline[0] == '#')
|
||||
// Ignore empty lines and comments
|
||||
if(trimmedline.size() == 0 || trimmedline[0] == '#')
|
||||
{
|
||||
dst.push_back(line+line_end);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue