Skip to content

Commit

Permalink
AURORA: Add an assert() on the stream in GFF3File constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Nov 19, 2016
1 parent c92c931 commit 471e9b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aurora/gff3file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ void GFF3File::Header::read(Common::SeekableReadStream &gff3) {
GFF3File::GFF3File(Common::SeekableReadStream *gff3, uint32 id, bool repairNWNPremium) :
_stream(gff3), _repairNWNPremium(repairNWNPremium), _offsetCorrection(0) {

assert(_stream);

load(id);
}

Expand Down

0 comments on commit 471e9b9

Please sign in to comment.