[Nov 23 2008] - Rumble

Fixed a memory leak in quest.c create_obj. (thanks Jamdog)
[Oct 21 2008] - Rumble
  Fixed display of wear locations and a typo. (thanks Kyle)
This commit is contained in:
Rumble 2008-12-05 01:24:36 +00:00
parent 6c963b8187
commit a7e4693eb6
3 changed files with 15 additions and 9 deletions

View file

@ -604,9 +604,13 @@ static void zedit_disp_arg3(struct descriptor_data *d)
switch (OLC_CMD(d).command) {
case 'E':
while (*equipment_types[i] != '\n') {
write_to_output(d, "%2d) %26.26s %2d) %26.26s\r\n", i,
equipment_types[i], i + 1, (*equipment_types[i + 1] != '\n') ?
equipment_types[i + 1] : "");
write_to_output(d, "%2d) %26.26s", i, equipment_types[i]);
if (*equipment_types[i + 1] != '\n')
write_to_output(d, " %2d) %26.26s", i + 1,
equipment_types[i + 1]);
write_to_output(d, "\r\n");
if (*equipment_types[i + 1] != '\n')
i += 2;
else
@ -962,7 +966,7 @@ void zedit_parse(struct descriptor_data *d, char *arg)
more reliable. */
while (*equipment_types[i] != '\n')
i++;
if (pos < 0 || pos > i)
if (pos < 0 || pos >= i)
write_to_output(d, "Try again : ");
else {
OLC_CMD(d).arg3 = pos;