From bce274f5acd9639ed5e2a16f529595203bb9c9b5 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 3 Sep 2023 11:09:30 -0500 Subject: [PATCH] Placefile line flags are not always specified --- wxdata/source/scwx/gr/placefile.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wxdata/source/scwx/gr/placefile.cpp b/wxdata/source/scwx/gr/placefile.cpp index 8ef9ba2d..b92fe1b2 100644 --- a/wxdata/source/scwx/gr/placefile.cpp +++ b/wxdata/source/scwx/gr/placefile.cpp @@ -586,7 +586,11 @@ void Placefile::Impl::ProcessLine(const std::string& line) di->endTime_ = endTime_; di->width_ = std::stoul(tokenList[0]); - di->flags_ = std::stoul(tokenList[1]); + + if (!tokenList[1].empty()) + { + di->flags_ = std::stoul(tokenList[1]); + } } if (tokenList.size() >= 3) {