summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/pets.cpp7
-rw-r--r--src/actions/pets.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp
index 01542edf4..b989cfc5c 100644
--- a/src/actions/pets.cpp
+++ b/src/actions/pets.cpp
@@ -231,4 +231,11 @@ impHandler0(petDropLoot)
return true;
}
+impHandler0(petReturnToEgg)
+{
+ if (petHandler != nullptr)
+ petHandler->returnToEgg();
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/pets.h b/src/actions/pets.h
index a3ac0795f..f607f474c 100644
--- a/src/actions/pets.h
+++ b/src/actions/pets.h
@@ -43,6 +43,7 @@ namespace Actions
decHandler(petMove);
decHandler(petFeed);
decHandler(petDropLoot);
+ decHandler(petReturnToEgg);
} // namespace Actions
#undef decHandler