diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-11-11 23:12:29 -0500 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-11-11 23:12:29 -0500 |
commit | a4640305fd0d88c6332112712aa69e496368e01b (patch) | |
tree | 0f039b331026ca2b9718a920b24e2344f9e56b25 /src/itemshortcut.cpp | |
parent | 5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e (diff) | |
download | mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.gz mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.bz2 mana-client-a4640305fd0d88c6332112712aa69e496368e01b.tar.xz mana-client-a4640305fd0d88c6332112712aa69e496368e01b.zip |
Replace Event names with enums instead of strings
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index ef4f6387..2d65c7e9 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -75,13 +75,13 @@ void ItemShortcut::useItem(int index) if (item->getInfo().getEquippable()) { if (item->isEquipped()) - item->doEvent("doUnequip"); + item->doEvent(EVENT_DOUNEQUIP); else - item->doEvent("doEquip"); + item->doEvent(EVENT_DOEQUIP); } else { - item->doEvent("doUse"); + item->doEvent(EVENT_DOUSE); } } } |