mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r12445) -Fix: Add missing compile asserts for window data structs
This commit is contained in:
parent
3256b24dd6
commit
ffe07b9292
@ -48,6 +48,7 @@ struct generate_d {
|
|||||||
uint y;
|
uint y;
|
||||||
char name[64];
|
char name[64];
|
||||||
};
|
};
|
||||||
|
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(generate_d));
|
||||||
|
|
||||||
extern void SwitchMode(int new_mode);
|
extern void SwitchMode(int new_mode);
|
||||||
|
|
||||||
|
@ -114,6 +114,7 @@ struct newgrf_add_d {
|
|||||||
GRFConfig **list;
|
GRFConfig **list;
|
||||||
const GRFConfig *sel;
|
const GRFConfig *sel;
|
||||||
};
|
};
|
||||||
|
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(newgrf_add_d));
|
||||||
|
|
||||||
/* Names of the add a newgrf window widgets */
|
/* Names of the add a newgrf window widgets */
|
||||||
enum AddNewGRFWindowWidgets {
|
enum AddNewGRFWindowWidgets {
|
||||||
|
@ -163,6 +163,7 @@ void ShowSignList()
|
|||||||
struct editsign_d : querystr_d {
|
struct editsign_d : querystr_d {
|
||||||
SignID cur_sign;
|
SignID cur_sign;
|
||||||
};
|
};
|
||||||
|
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(editsign_d));
|
||||||
|
|
||||||
enum QueryEditSignWidgets {
|
enum QueryEditSignWidgets {
|
||||||
QUERY_EDIT_SIGN_WIDGET_TEXT = 3,
|
QUERY_EDIT_SIGN_WIDGET_TEXT = 3,
|
||||||
|
Loading…
Reference in New Issue
Block a user