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:
@@ -313,8 +313,8 @@ int save_rooms(zone_rnum rzone)
|
|||||||
room->room_flags[3], room->sector_type
|
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. */
|
/* Now you write out the exits for the room. */
|
||||||
for (j = 0; j < DIR_COUNT; j++) {
|
for (j = 0; j < DIR_COUNT; j++) {
|
||||||
if (R_EXIT(room, j)) {
|
if (R_EXIT(room, j)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user