Skip to content

Commit

Permalink
AURORA: Use size_t in the loop in SSFFile::writeNWN()
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Dec 8, 2016
1 parent 896f7d3 commit d41e3c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aurora/ssffile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ bool SSFFile::writeSSF(const Common::UString &fileName, Version version) const {
}

void SSFFile::writeNWN(Common::WriteStream &out, size_t soundFileLen) const {
static const uint32 kOffsetEntryTable = 0x28;
static const size_t kOffsetEntryTable = 0x28;

out.writeUint32LE(_sounds.size());
out.writeUint32LE(kOffsetEntryTable);

// Reserved
for (uint32 i = 16; i < kOffsetEntryTable; i++)
for (size_t i = 16; i < kOffsetEntryTable; i++)
out.writeByte(0);

uint32 offsetData = kOffsetEntryTable + _sounds.size() * 4;
Expand Down

0 comments on commit d41e3c8

Please sign in to comment.