Skip to content
Browse files

AREImporter::PutMapnotes: according to iesdp, pst color is a dword

coverity 4493 - don't write garbage
  • Loading branch information...
1 parent bd94fbf commit b5787bce59e45699ddd9e66be0078ac4caf3a2ff @lynxlynxlynx lynxlynxlynx committed Apr 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 gemrb/plugins/AREImporter/AREImporter.cpp
View
4 gemrb/plugins/AREImporter/AREImporter.cpp
@@ -2096,8 +2096,8 @@ int AREImporter::PutMapnotes( DataStream *stream, Map *map)
if (x) {
stream->Write( filling, x);
}
- stream->WriteWord( &mn->color);
- stream->WriteWord( &tmpWord);
+ tmpDword = (ieDword) mn->color;
+ stream->WriteDword(&tmpDword);
for (x=0;x<5;x++) { //5 empty dwords
stream->Write( filling, 4);
}

0 comments on commit b5787bc

Please sign in to comment.
Something went wrong with that request. Please try again.