mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-05-21 05:40:35 +00:00
18 lines
307 B
C++
18 lines
307 B
C++
#include "data/record_reader.hpp"
|
|
|
|
namespace devilution {
|
|
|
|
void RecordReader::advance()
|
|
{
|
|
if (needsIncrement_) {
|
|
++it_;
|
|
} else {
|
|
needsIncrement_ = true;
|
|
}
|
|
if (it_ == end_) {
|
|
DataFile::reportFatalError(DataFile::Error::NotEnoughColumns, filename_);
|
|
}
|
|
}
|
|
|
|
} // namespace devilution
|