summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/engine_sl.cpp4
-rw-r--r--src/saveload/labelmaps_sl.cpp3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/saveload/engine_sl.cpp b/src/saveload/engine_sl.cpp
index 038717e3f..188db2dea 100644
--- a/src/saveload/engine_sl.cpp
+++ b/src/saveload/engine_sl.cpp
@@ -137,11 +137,9 @@ static void Save_EIDS()
static void Load_EIDS()
{
- int index;
-
_engine_mngr.Clear();
- while ((index = SlIterateArray()) != -1) {
+ while (SlIterateArray() != -1) {
EngineIDMapping *eid = _engine_mngr.Append();
SlObject(eid, _engine_id_mapping_desc);
}
diff --git a/src/saveload/labelmaps_sl.cpp b/src/saveload/labelmaps_sl.cpp
index 67d06d485..5cc77af0c 100644
--- a/src/saveload/labelmaps_sl.cpp
+++ b/src/saveload/labelmaps_sl.cpp
@@ -109,9 +109,8 @@ static void Load_RAIL()
_railtype_list.Clear();
LabelObject lo;
- int index;
- while ((index = SlIterateArray()) != -1) {
+ while (SlIterateArray() != -1) {
SlObject(&lo, _label_object_desc);
*_railtype_list.Append() = (RailTypeLabel)lo.label;
}