Update genwld.c

Fixed a parsing bug in the text-editor where an errant %s could cause a crash. (thanks Kyle)
This commit is contained in:
Rumble 2014-01-02 18:12:10 -05:00
parent 4efecf77c1
commit 52c6c82421

View file

@ -313,8 +313,8 @@ int save_rooms(zone_rnum rzone)
room->room_flags[3], room->sector_type
);
fprintf(sf, convert_from_tabs(buf2), 0);
fprintf(sf, "%s", convert_from_tabs(buf2));
/* Now you write out the exits for the room. */
for (j = 0; j < DIR_COUNT; j++) {
if (R_EXIT(room, j)) {