diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-23 17:49:44 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-01-23 17:49:44 +0000 |
commit | bbc69c87b96710a51b19b94aee1cedbb0f555336 (patch) | |
tree | 4cb1901e7365289f5439c6fbda60e2755a5fef42 /Changelog-Trunk.txt | |
parent | 88c8f196133a694bac6023244774063332987f7b (diff) | |
download | hercules-bbc69c87b96710a51b19b94aee1cedbb0f555336.tar.gz hercules-bbc69c87b96710a51b19b94aee1cedbb0f555336.tar.bz2 hercules-bbc69c87b96710a51b19b94aee1cedbb0f555336.tar.xz hercules-bbc69c87b96710a51b19b94aee1cedbb0f555336.zip |
* Changed npc_get_new_npc_id to ensure that it never returns invalid/used ids.
- npc_get_new_npc_id is used to generate ids for npcs/mobs/homunculus/mercenaries/pets. If the server runs for long enough (years to months or less, depending on settings), the auxiliary variable npc_id will eventually overflow and go negative, then go through the range of object ids, then through the range of account ids. This can lead to all sorts of random crashes and memory leaks.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13481 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'Changelog-Trunk.txt')
-rw-r--r-- | Changelog-Trunk.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 0d1d1fb1e..da42dc784 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,13 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2009/01/23 + * Changed npc_get_new_npc_id to ensure that it never returns invalid/used ids. [FlavioJS] + - npc_get_new_npc_id is used to generate ids for npcs/mobs/homunculus/mercenaries/pets. + If the server runs for long enough (years to months or less, depending on settings), + the auxiliary variable npc_id will eventually overflow and go negative, then go + through the range of object ids, then through the range of account ids. + This can lead to all sorts of random crashes and memory leaks. 2009/01/22 * Changed val4 of SC_BLADESTOP from a block_list pointer to an id. [FlavioJS] 2009/01/21 |