summaryrefslogtreecommitdiff
path: root/src/new_menu_helpers.c
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-07-10 03:21:34 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-07-13 05:26:19 +0800
commit9d539994652736c50a054c8d3c6beb8f221f3428 (patch)
tree22866b62370693fb828bd7460c9c78aaff463f54 /src/new_menu_helpers.c
parentbcf27c2de147b1a04c32f8f9e5dd8a5eca657455 (diff)
polish and bug fix
Diffstat (limited to 'src/new_menu_helpers.c')
-rw-r--r--src/new_menu_helpers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/new_menu_helpers.c b/src/new_menu_helpers.c
index 5e2452e14..9d2a5c883 100644
--- a/src/new_menu_helpers.c
+++ b/src/new_menu_helpers.c
@@ -671,8 +671,7 @@ u8 sub_80F78E0(u8 height)
{
if (sStartMenuWindowId == 0xFF)
{
- struct WindowTemplate template;
- template = SetWindowTemplateFields(0, 0x16, 1, 7, height * 2 - 1, DLG_WINDOW_PALETTE_NUM, 0x13D);
+ struct WindowTemplate template = SetWindowTemplateFields(0, 0x16, 1, 7, height * 2 - 1, DLG_WINDOW_PALETTE_NUM, 0x13D);
sStartMenuWindowId = AddWindow(&template);
PutWindowTilemap(sStartMenuWindowId);
}