mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:50:05 +00:00
Placefile line flags are not always specified
This commit is contained in:
parent
9766e02f32
commit
bce274f5ac
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue