summaryrefslogtreecommitdiff
path: root/src/actions/pets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/pets.cpp')
-rw-r--r--src/actions/pets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp
index a31e8aadc..a6c9a24df 100644
--- a/src/actions/pets.cpp
+++ b/src/actions/pets.cpp
@@ -66,8 +66,8 @@ static const Being *getPet()
}
#endif
#ifdef EATHENA_SUPPORT
- const int id = PlayerInfo::getPetBeingId();
- if (!id)
+ const BeingId id = PlayerInfo::getPetBeingId();
+ if (id == BeingId_zero)
return nullptr;
return actorManager->findBeing(id);
#else