PDA

View Full Version : [4.4-cvs][patch] Some minor updates proposals


ElNounch
03-16-2003, 12:25 AM
As of 15th March public NightDump.

zone/client.cpp
Correction of buffer1[] size in the MakeDoorSpawnPacket function
(Segfault on both Windows and Linux, but wrong anyway in the CVS for weeks, was corrected once but somehow broke again).

zone/spells.cpp
In function CalcEdibleBonuses, after the inventory scan for food and drink, food_inr and drink_inr might still be uninitialized but are used anyway.

zone/zone.cpp
The request in Database::GetDecayTimes() include a like 'decaytime%' string which is parsed further by vsnprintf() via the MakeAnyLenString function. %' format switch doesn't exist and might fail (it does with .Net libraries).
Corrected to %%'

I doubt anyone will either see this post, but at least it is not only on my harddrive anymore.

Trumpcard
03-16-2003, 01:24 AM
lol... thanks... I saw the uninitialized variables problem and fixed it in ST (I just initialzied them to 0, god bless gcc warnings)

I'll take a look at the other 2 and try to merge them in. Thanks for the updates