aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
authorWalter van Niftrik2016-12-11 14:25:06 +0100
committerWalter van Niftrik2016-12-11 14:25:06 +0100
commitec73249ff87dc5578bc12fb733c520802e03dcae (patch)
treeb084f04e46f0cbb1346d63b85c04d24f057adeb0 /engines/adl
parent6b132706d309f0b62bd2af36ad8b956a5db652f7 (diff)
downloadscummvm-rg350-ec73249ff87dc5578bc12fb733c520802e03dcae.tar.gz
scummvm-rg350-ec73249ff87dc5578bc12fb733c520802e03dcae.tar.bz2
scummvm-rg350-ec73249ff87dc5578bc12fb733c520802e03dcae.zip
ADL: Fix warning
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/adl_v4.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/adl/adl_v4.cpp b/engines/adl/adl_v4.cpp
index 6a74881db5..00a393facc 100644
--- a/engines/adl/adl_v4.cpp
+++ b/engines/adl/adl_v4.cpp
@@ -87,16 +87,16 @@ void AdlEngine_v4::loadRegionLocations(Common::ReadStream &stream, uint regions)
void AdlEngine_v4::loadRegionInitDataOffsets(Common::ReadStream &stream, uint regions) {
for (uint r = 0; r < regions; ++r) {
- RegionInitDataOffset init;
- init.track = stream.readByte();
- init.sector = stream.readByte();
- init.offset = stream.readByte();
- init.volume = stream.readByte();
+ RegionInitDataOffset initOfs;
+ initOfs.track = stream.readByte();
+ initOfs.sector = stream.readByte();
+ initOfs.offset = stream.readByte();
+ initOfs.volume = stream.readByte();
if (stream.eos() || stream.err())
error("Failed to read region init data offsets");
- _regionInitDataOffsets.push_back(init);
+ _regionInitDataOffsets.push_back(initOfs);
}
}