Skip to content

Commit

Permalink
AREImporter::PutMapnotes: according to iesdp, pst color is a dword
Browse files Browse the repository at this point in the history
coverity 4493 - don't write garbage
  • Loading branch information
lynxlynxlynx committed Apr 22, 2013
1 parent bd94fbf commit b5787bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemrb/plugins/AREImporter/AREImporter.cpp
Expand Up @@ -2096,8 +2096,8 @@ int AREImporter::PutMapnotes( DataStream *stream, Map *map)
if (x) { if (x) {
stream->Write( filling, x); stream->Write( filling, x);
} }
stream->WriteWord( &mn->color); tmpDword = (ieDword) mn->color;
stream->WriteWord( &tmpWord); stream->WriteDword(&tmpDword);
for (x=0;x<5;x++) { //5 empty dwords for (x=0;x<5;x++) { //5 empty dwords
stream->Write( filling, 4); stream->Write( filling, 4);
} }
Expand Down

0 comments on commit b5787bc

Please sign in to comment.