修正删除pet时, pet无法找到的bug

This commit is contained in:
zhl 2020-12-10 15:44:39 +08:00
parent 1e75d19c3c
commit fe8c91da9c

View File

@ -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;