summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monspeak.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monspeak.cc')
-rw-r--r--crawl-ref/source/monspeak.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/monspeak.cc b/crawl-ref/source/monspeak.cc
index f1230a6fbd..dbf428ed2a 100644
--- a/crawl-ref/source/monspeak.cc
+++ b/crawl-ref/source/monspeak.cc
@@ -26,6 +26,7 @@
#include "database.h"
#include "debug.h"
#include "fight.h"
+#include "ghost.h"
#include "insult.h"
#include "itemname.h"
#include "message.h"
@@ -127,7 +128,7 @@ static std::string player_ghost_speak_str(const monsters *monster,
const std::vector<std::string> prefixes)
{
const ghost_demon &ghost = *(monster->ghost);
- std::string ghost_class = get_class_name(ghost.values[GVAL_CLASS]);
+ std::string ghost_class = get_class_name(ghost.job);
std::string prefix = "";
for (int i = 0, size = prefixes.size(); i < size; i++)