summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-12-13 21:21:57 +0000
committerDarkvater <darkvater@openttd.org>2005-12-13 21:21:57 +0000
commit56998926e7b1e8f93460b6c0cc826479b4f465e5 (patch)
tree641d3c568019ae2e01d4e7be32c3754de9e2c2ee /saveload.c
parent2a60262c99e1236db2019f470e4e39c72d4a9857 (diff)
downloadopenttd-56998926e7b1e8f93460b6c0cc826479b4f465e5.tar.xz
(svn r3294) - Fix: use INVALID_STRING_ID instead of -1.
- Fix: savegames only give back one message, show this by ignoring the first argument. Perhaps make the message more verbose in the future by adding STR_ equivalents next to the already existing debug messages.
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/saveload.c b/saveload.c
index 8cfc878bb..55d987df0 100644
--- a/saveload.c
+++ b/saveload.c
@@ -1356,7 +1356,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode)
/* An instance of saving is already active, so don't go saving again */
if (_ts.saveinprogress && mode == SL_SAVE) {
// if not an autosave, but a user action, show error message
- if (!_do_autosave) ShowErrorMessage(_error_message, STR_SAVE_STILL_IN_PROGRESS, 0, 0);
+ if (!_do_autosave) ShowErrorMessage(INVALID_STRING_ID, STR_SAVE_STILL_IN_PROGRESS, 0, 0);
return SL_OK;
}
WaitTillSaved();