Skip to content

Commit

Permalink
- fix assert error
Browse files Browse the repository at this point in the history
  • Loading branch information
Deamon87 committed Sep 8, 2023
1 parent dfb3aef commit 279e61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileReaders/WDC3/DB2Ver3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ std::string DB2Ver3::WDC3Record::readString(int fieldIndex, int fieldElementOffs
const auto sectionHeaders = db2Class->section_headers;
int sectionIndexforStr = 0;
while (sectionIndexforStr < db2Class->sections.size() && offset >= sectionHeaders[sectionIndexforStr].string_table_size) {
assert(offset > sectionHeaders[sectionIndexforStr].string_table_size && offset > 0);
assert(offset >= sectionHeaders[sectionIndexforStr].string_table_size && offset >= 0);
offset -= sectionHeaders[sectionIndexforStr].string_table_size;

sectionIndexforStr++;
Expand Down

0 comments on commit 279e61a

Please sign in to comment.