diff options
author | Eugene Sandulenko | 2013-09-29 10:30:39 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-29 10:30:39 +0300 |
commit | c73904c9788d8f7992c85de33cb505072aba7a2f (patch) | |
tree | 726c25ba229a3b14ff5a61ce6a00fb2fe29d3522 | |
parent | 2333041fdf370670e02c51d93342839bbec676d4 (diff) | |
download | scummvm-rg350-c73904c9788d8f7992c85de33cb505072aba7a2f.tar.gz scummvm-rg350-c73904c9788d8f7992c85de33cb505072aba7a2f.tar.bz2 scummvm-rg350-c73904c9788d8f7992c85de33cb505072aba7a2f.zip |
SWORD25: Fix compilation
-rw-r--r-- | engines/sword25/math/walkregion.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/sword25/math/walkregion.cpp b/engines/sword25/math/walkregion.cpp index 6c53446913..0ba7e8ec3d 100644 --- a/engines/sword25/math/walkregion.cpp +++ b/engines/sword25/math/walkregion.cpp @@ -341,9 +341,9 @@ bool WalkRegion::persist(OutputPersistenceBlock &writer) { Common::Array< Common::Array<int> >::const_iterator rowIter = _visibilityMatrix.begin(); while (rowIter != _visibilityMatrix.end()) { writer.write((uint32)rowIter->size()); - Common::Array<int32>::const_iterator colIter = rowIter->begin(); + Common::Array<int>::const_iterator colIter = rowIter->begin(); while (colIter != rowIter->end()) { - writer.write(*colIter); + writer.write((int32)*colIter); ++colIter; } @@ -381,9 +381,11 @@ bool WalkRegion::unpersist(InputPersistenceBlock &reader) { uint32 colCount; reader.read(colCount); rowIter->resize(colCount); - Common::Array<int32>::iterator colIter = rowIter->begin(); + Common::Array<int>::iterator colIter = rowIter->begin(); while (colIter != rowIter->end()) { - reader.read(*colIter); + int32 t; + reader.read(t); + *colIter = t; ++colIter; } |