Bug: Reloading a map on the overland reloads from the WRONG map file
Discovered in: AFKMud 1.76a
Danger: Critical - Data corruption + possible crash
Found by: Samson
Fixed by: Samson
load_mapfile( map_filenames[x], ch->map );
load_mapfile( map_filenames[ch->map], ch->map );
Ah, the wonders of using a variable in the wrong place even though it was still in scope and therefore not bugging out. Using x instead of ch->map will almost certainly just crash out, but on the off chance it does not then you could be looking at a map that's been completely hosed by reloading data that doesn't go with it. This will not destroy an existing map though unless it is saved back before being discovered.
This bug also affects the Overland ANSI Maps snippet and has now been corrected.