Fixed alias saving bug and oedit setting to type undefined --Rumble

This commit is contained in:
Rumble
2010-07-03 02:24:47 +00:00
parent 4b44a1a097
commit ab4d9c618e
3 changed files with 35 additions and 30 deletions

View File

@@ -868,7 +868,7 @@ void oedit_parse(struct descriptor_data *d, char *arg)
case OEDIT_TYPE:
number = atoi(arg);
if ((number < 1) || (number >= NUM_ITEM_TYPES)) {
if ((number < 0) || (number >= NUM_ITEM_TYPES)) {
write_to_output(d, "Invalid choice, try again : ");
return;
} else