Bug: fwrite_obj does not validate for NULL objects
Danger: Low - A crash will result, but apparently the conditions aren't very common.
Discovered in: AFKMud 1.77
Found by: Phoneix Dracul
Fixed by: Phoneix Dracul
if( iNest >= MAX_NEST )
bug( "fwrite_obj: iNest hit MAX_NEST %d", iNest );
Below that, add:
if( !obj )
bug( "%s: NULL obj", __FUNCTION__ );
This is mostly a preventative safety check since there has only been one reported incident on an SWFOTE mud, but since all Smaug bases share this function in common, it can't hurt to block for it and then try to track down the cause.