From dc3559a5c0eca1ad82ad6ca4660882024bb7df60 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 26 Feb 2013 17:50:08 -0300 Subject: [PATCH] Fix hotkey bug and compile error on Mac --- modules/game_hotkeys/hotkeys_manager.lua | 2 +- src/framework/sound/declarations.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/game_hotkeys/hotkeys_manager.lua b/modules/game_hotkeys/hotkeys_manager.lua index 6a52781e..13c4a6ec 100644 --- a/modules/game_hotkeys/hotkeys_manager.lua +++ b/modules/game_hotkeys/hotkeys_manager.lua @@ -364,7 +364,7 @@ function doKeyCombo(keyCombo) modules.game_console.setTextEditText(hotKey.value) end elseif hotKey.useType == HOTKEY_MANAGER_USE then - g_game.useInventoryItemWith(hotKey.itemId) + g_game.useInventoryItem(hotKey.itemId) elseif hotKey.useType == HOTKEY_MANAGER_USEONSELF then g_game.useInventoryItemWith(hotKey.itemId, g_game.getLocalPlayer()) elseif hotKey.useType == HOTKEY_MANAGER_USEONTARGET then diff --git a/src/framework/sound/declarations.h b/src/framework/sound/declarations.h index 5877ef30..c88e62c1 100644 --- a/src/framework/sound/declarations.h +++ b/src/framework/sound/declarations.h @@ -27,8 +27,8 @@ #define AL_LIBTYPE_STATIC -#include -#include +#include +#include class SoundManager; class SoundSource;