修正删除pet时, pet无法找到的bug
This commit is contained in:
parent
1e75d19c3c
commit
fe8c91da9c
@ -171,7 +171,7 @@ Object.defineProperties(Room.prototype, {
|
||||
error(`bRemovePet no player found: ${pid}`);
|
||||
return;
|
||||
}
|
||||
let pet = player.pets.get(obj.pos);
|
||||
let pet = player.pets.get(obj.pos + '');
|
||||
if (!pet) {
|
||||
error(`bRemovePet no pet found: ${pid}, pos: ${obj.pos}`);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user