mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-15 06:52:34 +02:00
Removed whitespace from lines for the LoaderIPL
This commit is contained in:
parent
a2b06209bb
commit
f510a274a0
@ -3,6 +3,7 @@
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
|
||||
enum SectionTypes
|
||||
{
|
||||
@ -26,6 +27,7 @@ bool LoaderIPL::load(const std::string& filename)
|
||||
{
|
||||
std::string line;
|
||||
getline(str, line);
|
||||
line.erase(std::find_if(line.rbegin(), line.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), line.end());
|
||||
|
||||
if(!line.empty() && line[0] == '#')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user