aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/math/walkregion.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-29 10:30:39 +0300
committerEugene Sandulenko2013-09-29 10:30:39 +0300
commitc73904c9788d8f7992c85de33cb505072aba7a2f (patch)
tree726c25ba229a3b14ff5a61ce6a00fb2fe29d3522 /engines/sword25/math/walkregion.cpp
parent2333041fdf370670e02c51d93342839bbec676d4 (diff)
downloadscummvm-rg350-c73904c9788d8f7992c85de33cb505072aba7a2f.tar.gz
scummvm-rg350-c73904c9788d8f7992c85de33cb505072aba7a2f.tar.bz2
scummvm-rg350-c73904c9788d8f7992c85de33cb505072aba7a2f.zip
SWORD25: Fix compilation
Diffstat (limited to 'engines/sword25/math/walkregion.cpp')
-rw-r--r--engines/sword25/math/walkregion.cpp10
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;
}