diff options
author | rubidium <rubidium@openttd.org> | 2007-08-01 22:10:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-01 22:10:54 +0000 |
commit | 4e96ce3dfea13ffab951a93061e35423e0b321e5 (patch) | |
tree | e6ac6f2443373cc3523acedc8b0e458b99955651 /src/saveload.cpp | |
parent | 435d39f8fb5c2e3a40e6e0c7344ba4b1531a6844 (diff) | |
download | openttd-4e96ce3dfea13ffab951a93061e35423e0b321e5.tar.xz |
(svn r10744) -Codechange: make the pool a little more OO, so it can be easier in other places.
Diffstat (limited to 'src/saveload.cpp')
-rw-r--r-- | src/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp index ffce4e69d..cb159e5c2 100644 --- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -1552,7 +1552,7 @@ static SaveOrLoadResult SaveFileToDisk(bool threaded) uint count = 1 << Savegame_POOL_BLOCK_SIZE_BITS; assert(_ts.count == _sl.offs_base); - for (i = 0; i != _Savegame_pool.current_blocks - 1; i++) { + for (i = 0; i != _Savegame_pool.GetBlockCount() - 1; i++) { _sl.buf = _Savegame_pool.blocks[i]; fmt->writer(count); } |