summaryrefslogtreecommitdiff
path: root/src/listeners/playerlistener.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/playerlistener.h')
-rw-r--r--src/listeners/playerlistener.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/listeners/playerlistener.h b/src/listeners/playerlistener.h
index 3364f44f5..52527fafc 100644
--- a/src/listeners/playerlistener.h
+++ b/src/listeners/playerlistener.h
@@ -21,6 +21,8 @@
#ifndef LISTENERS_PLAYERLISTENER_H
#define LISTENERS_PLAYERLISTENER_H
+#include "enums/being/actortype.h"
+
#include "listeners/actionlistener.h"
#include "localconsts.h"
@@ -42,13 +44,13 @@ class PlayerListener final : public ActionListener
void setDialog(TextDialog *const dialog)
{ mDialog = dialog; }
- void setType(const int type)
+ void setType(const ActorType::Type type)
{ mType = type; }
private:
std::string mNick;
TextDialog *mDialog;
- int mType;
+ ActorType::Type mType;
};
#endif // LISTENERS_PLAYERLISTENER_H