diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-08-01 22:53:28 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-01 22:53:28 -0600 |
commit | 9eb236c4dc25e818ee007aa2c9cb36a23111d8d9 (patch) | |
tree | 5debd2c5f8c6c78f1bf78b8f0877cec9ddc9e831 | |
parent | cec8045dcdad05d76141d4e27c8c9e72696ce7dc (diff) | |
download | mana-9eb236c4dc25e818ee007aa2c9cb36a23111d8d9.tar.gz mana-9eb236c4dc25e818ee007aa2c9cb36a23111d8d9.tar.bz2 mana-9eb236c4dc25e818ee007aa2c9cb36a23111d8d9.tar.xz mana-9eb236c4dc25e818ee007aa2c9cb36a23111d8d9.zip |
Fix events added in last commit to use ints instead of bools
-rw-r--r-- | src/playerinfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp index a6438187..a9f40974 100644 --- a/src/playerinfo.cpp +++ b/src/playerinfo.cpp @@ -224,8 +224,8 @@ void setStorageCount(int count) if (count != old) { Mana::Event event("StorageCount"); - event.setBool("oldCount", old); - event.setBool("newCount", count); + event.setInt("oldCount", old); + event.setInt("newCount", count); Mana::EventManager::trigger("Storage", event); } } @@ -245,8 +245,8 @@ void setNPCInteractionCount(int count) if (count != old) { Mana::Event event("NPCCount"); - event.setBool("oldCount", old); - event.setBool("newCount", count); + event.setInt("oldCount", old); + event.setInt("newCount", count); Mana::EventManager::trigger("NPC", event); } } @@ -264,8 +264,8 @@ void setNPCPostCount(int count) if (count != old) { Mana::Event event("PostCount"); - event.setBool("oldCount", old); - event.setBool("newCount", count); + event.setInt("oldCount", old); + event.setInt("newCount", count); Mana::EventManager::trigger("NPC", event); } } |