05-13-2013, 01:49 AM
I have analysed the crashdump tonibm9 has provided and the cause is quite simple - a plugin is trying to call cItems:Get() for an item index that is not in the cItems object. Now, I haven't checked the plugin's source yet (I suppose it's the one by STR_Warrior to fix pickups), but I suppose it has an off-by-one error, too - the cItems object is indexed starting at zero, so valid indices are 0 .. (Size() - 1).
I'll fix the cItems interface to be resistant to these kinds of errors - instead of crashing it will log an error and return a nil object. Pity, that's a bit of performance lost (but hey, it's no big deal here, it's not like you'll be calling this 500k times a second.)
I'll fix the cItems interface to be resistant to these kinds of errors - instead of crashing it will log an error and return a nil object. Pity, that's a bit of performance lost (but hey, it's no big deal here, it's not like you'll be calling this 500k times a second.)