diff options
author | alberth <alberth@openttd.org> | 2016-09-04 15:10:41 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 15:10:41 +0000 |
commit | 4001f6215e5d1e56aba121c226fb7e824a170f21 (patch) | |
tree | 038a9460c39b26e812b9190433844e35e12e52a9 | |
parent | 6f201ce4a8db0143ba0664aabdd04dc733adc243 (diff) | |
download | openttd-4001f6215e5d1e56aba121c226fb7e824a170f21.tar.xz |
(svn r27652) -Fix(r27650): Use the file operation being performed to set the _sl.action variable.
-rw-r--r-- | src/saveload/saveload.cpp | 2 |
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; |