From 39ab9ebf7464f77f079a8edecd3f43870245b8ee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2015 20:24:14 +0300 Subject: Use ActorType for being type. --- src/being/being.cpp | 3 ++- src/being/being.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/being') diff --git a/src/being/being.cpp b/src/being/being.cpp index 523d19331..4109e01a4 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -3084,7 +3084,8 @@ std::string Being::loadComment(const std::string &name, } void Being::saveComment(const std::string &restrict name, - const std::string &restrict comment, const int type) + const std::string &restrict comment, + const ActorType::Type &restrict type) { std::string dir; switch (type) diff --git a/src/being/being.h b/src/being/being.h index 52a2a5fc7..6364f8aed 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -755,7 +755,7 @@ class Being notfinal : public ActorSprite, static void saveComment(const std::string &restrict name, const std::string &restrict comment, - const int type); + const ActorType::Type &restrict type); bool isAdvanced() const A_WARN_UNUSED { return mAdvanced; } -- cgit v1.2.3-70-g09d2