diff options
-rw-r--r-- | patches/gtk2/g2main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/gtk2/g2main.c b/patches/gtk2/g2main.c index 2405bb3..8df1185 100644 --- a/patches/gtk2/g2main.c +++ b/patches/gtk2/g2main.c @@ -490,7 +490,7 @@ static const char *uiDescription = static void command_activated (GtkWidget * action, gpointer command) { - if (GPOINTER_TO_INT (command) == 0xffffffb2) { + if (!strcmp (action->name, "Twoweapons")) { /* Workaround to handle Twoweapons extended command */ keyBuffer = g_slist_append (keyBuffer, GINT_TO_POINTER ('#')); keyBuffer = g_slist_append (keyBuffer, GINT_TO_POINTER ('t')); |