Skip to content

Commit

Permalink
Disable GR2 marshalling
Browse files Browse the repository at this point in the history
We don't expect to load GR2 files with an endianness that doesn't match
the CPU endianness, so no need to apply marshalling.
  • Loading branch information
Arbos committed May 16, 2023
1 parent ba1544f commit 19ed5be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nwn2mdk-lib/gr2_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,10 @@ GR2_file::GR2_file(std::istream& in)
read(in);
}

void GR2_file::apply_marshalling(std::istream& in)
void GR2_file::apply_marshalling(std::istream&)
{
for (unsigned i = 0; i < header.info.sections_count; ++i)
apply_marshalling(in, i);
// We don't expect to load GR2 files with an endianness that doesn't
// match the CPU endianness, so no need to apply marshalling.
}

void GR2_file::apply_marshalling(std::istream& in, unsigned index)
Expand Down

0 comments on commit 19ed5be

Please sign in to comment.