char i;
struct Monster * monster = malloc(sizeof(struct Monster));
world.monster = monster;
- for (i = 0; i < 2; i++) {
+ for (i = 0; i < 8; i++) {
monster->name = 'M';
monster->next = malloc(sizeof(struct Monster));
monster = monster->next; }
monster->next = 0;
struct Item * item = malloc(sizeof(struct Item));
world.item = item;
- for (i = 0; i < 2; i++) {
+ for (i = 0; i < 8; i++) {
item->name = '#';
item->next = malloc(sizeof(struct Item));
item = item->next; }