… | |
… | |
106 | |
106 | |
107 | /* Since the pet has no existing enemy, look for anything nasty |
107 | /* Since the pet has no existing enemy, look for anything nasty |
108 | * around the owner that it should go and attack. (if the owner is |
108 | * around the owner that it should go and attack. (if the owner is |
109 | * still on a map) |
109 | * still on a map) |
110 | */ |
110 | */ |
|
|
111 | // owners sometimes are not on a map but in the inventory of somehting else |
111 | if (!owner->flag [FLAG_REMOVED]) |
112 | if (!owner->flag [FLAG_REMOVED] && owner->map) |
112 | { |
113 | { |
113 | tmp3 = 0; |
114 | tmp3 = 0; |
114 | |
115 | |
115 | for (i = 0; i < SIZEOFFREE; i++) |
116 | for (i = 0; i < SIZEOFFREE; i++) |
116 | { |
117 | { |