diff options
author | rubidium <rubidium@openttd.org> | 2007-06-21 19:08:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-21 19:08:47 +0000 |
commit | 0b34c9aefe342c6ffe11d2d4720d7c06c157e04d (patch) | |
tree | d3371ccdafc2ee276ac7c5cecc77a905283e656d /src/strings.cpp | |
parent | fb7964e90270d4471774a4625e5ef03dd7a6eae2 (diff) | |
download | openttd-0b34c9aefe342c6ffe11d2d4720d7c06c157e04d.tar.xz |
(svn r10262) -Fix (r10258): some places that needed to be changed to uint64 were hidden/forgotten, which caused memory corruptions and that in caused all kinds of assertions to trigger.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 37a4377c9..bb97c899c 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -217,7 +217,7 @@ void SetDParamStr(uint n, const char *str) void InjectDParam(int amount) { - memmove(_decode_parameters + amount, _decode_parameters, sizeof(_decode_parameters) - amount * sizeof(uint32)); + memmove(_decode_parameters + amount, _decode_parameters, sizeof(_decode_parameters) - amount * sizeof(uint64)); } static const uint32 _divisor_table[] = { |