diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-29 06:05:24 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-29 06:05:24 +0000 |
commit | a8dc1f23ab7eff1f6c4e59d11446e80ad6780d33 (patch) | |
tree | e7e94289197275628524adcc7c6f35112ae0271c | |
parent | c02585787deadc6ef738239b72512d787a7abc62 (diff) | |
download | manaserv-a8dc1f23ab7eff1f6c4e59d11446e80ad6780d33.tar.gz manaserv-a8dc1f23ab7eff1f6c4e59d11446e80ad6780d33.tar.bz2 manaserv-a8dc1f23ab7eff1f6c4e59d11446e80ad6780d33.tar.xz manaserv-a8dc1f23ab7eff1f6c4e59d11446e80ad6780d33.zip |
Commented non-compliant coding.
-rw-r--r-- | src/game-server/quest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game-server/quest.cpp b/src/game-server/quest.cpp index f6675127..118fde9d 100644 --- a/src/game-server/quest.cpp +++ b/src/game-server/quest.cpp @@ -83,6 +83,11 @@ struct QuestDeathListener: DeathListener { void deleted(Being *b) { + /* FIXME: At this point, Character has already been destroyed and we + are potentially reading garbage or segfaulting. This is a misfeature + of DeathListener and it should be fixed there. Anyway, as we are + calling a non-virtual method and it accesses a primitive datatype, + we should be safe with any compiler without vicious compliance. */ int id = static_cast< Character * >(b)->getDatabaseID(); pendingQuests.erase(id); } |