summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 15:10:41 +0000
committeralberth <alberth@openttd.org>2016-09-04 15:10:41 +0000
commit4001f6215e5d1e56aba121c226fb7e824a170f21 (patch)
tree038a9460c39b26e812b9190433844e35e12e52a9 /src/saveload
parent6f201ce4a8db0143ba0664aabdd04dc733adc243 (diff)
downloadopenttd-4001f6215e5d1e56aba121c226fb7e824a170f21.tar.xz
(svn r27652) -Fix(r27650): Use the file operation being performed to set the _sl.action variable.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index b78171e60..8da0d0398 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -2812,7 +2812,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, FileOperation fop, DetailedFil
}
assert(dft == DFT_GAME_FILE);
- switch (dft) {
+ switch (fop) {
case FOP_CHECK:
_sl.action = SLA_LOAD_CHECK;
break;