Bug: load_char allows PCs to load with a vnum assigned
Danger: High - Undefined behaviour
Found by: Remcon
Fixed by: Samson
if( !strcmp( word, "Vnum" ) )
ch->pIndexData = get_mob_index( fread_number( fp ) );
fMatch = TRUE;
Remove the code block.
It is not known why there is a block in this function to assign a vnum to a player, but it's there and it does not belong there. Testing hasn't shown any crashes or corruption from this but mdeleting a test vnum assigned to a player did cause them to be immediately dropped from the game. So there is a great deal of undefined behaviour that could result from this and there's no real way to know what without risking it. Best bet is to just get rid of it.