… | … | ||
---|---|---|---|
345 | * would require keeping a 'next' pointer, ad free_object kills tmp, which | 345 | * would require keeping a 'next' pointer, ad free_object kills tmp, which |
346 | * breaks the for loop. | 346 | * breaks the for loop. |
347 | */ | 347 | */ |
348 | if (tmp->type == EXIT && EXIT_PATH (tmp) && !strncmp (EXIT_PATH (tmp), "/random/", 8)) | 348 | if (tmp->type == EXIT && EXIT_PATH (tmp) && !strncmp (EXIT_PATH (tmp), "/random/", 8)) |
349 | { | 349 | { |
350 | remove_ob (tmp); | 350 | tmp->remove (); |
351 | free_object (tmp); | 351 | tmp->destroy (0); |
352 | break; | 352 | break; |
353 | } | 353 | } |
354 | 354 | ||
355 | if (final_map_exit == 1) | 355 | if (final_map_exit == 1) |
356 | { | 356 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |