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/misc_gui.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/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 2a36406af..c608f340c 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -702,7 +702,7 @@ static void TooltipsWndProc(Window *w, WindowEvent *e) * @param paramcount number of params to deal with * @param params (optional) up to 5 pieces of additional information that may be * added to a tooltip; currently only supports parameters of {NUM} (integer) */ -void GuiShowTooltipsWithArgs(StringID str, uint paramcount, const uint32 params[]) +void GuiShowTooltipsWithArgs(StringID str, uint paramcount, const uint64 params[]) { char buffer[512]; BoundingRect br; @@ -1214,7 +1214,7 @@ enum QueryWidgets { struct query_d { void (*proc)(Window*, bool); ///< callback function executed on closing of popup. Window* points to parent, bool is true if 'yes' clicked, false otherwise StringID message; ///< message shown for query window - uint32 params[20]; ///< local copy of _decode_parameters + uint64 params[10]; ///< local copy of _decode_parameters bool calledback; ///< has callback been executed already (internal usage for WE_DESTROY event) }; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(query_d)); |