summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-08 01:45:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-08 01:45:55 +0300
commitba1f86da74b30f7a81f6b1293eff18ea19855aa6 (patch)
tree84d3c8faa10cf837dff5f62fc9d4a4d2747a7eb1
parent3fde4db8cdc341839282e6c521c0a9214ad23a7c (diff)
downloadevol-hercules-ba1f86da74b30f7a81f6b1293eff18ea19855aa6.tar.gz
evol-hercules-ba1f86da74b30f7a81f6b1293eff18ea19855aa6.tar.bz2
evol-hercules-ba1f86da74b30f7a81f6b1293eff18ea19855aa6.tar.xz
evol-hercules-ba1f86da74b30f7a81f6b1293eff18ea19855aa6.zip
Add quest names to constants.
-rw-r--r--src/emap/quest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emap/quest.c b/src/emap/quest.c
index 88158dc..4ef0e55 100644
--- a/src/emap/quest.c
+++ b/src/emap/quest.c
@@ -13,6 +13,7 @@
#include "common/socket.h"
#include "common/strlib.h"
#include "map/itemdb.h"
+#include "map/script.h"
#include "map/quest.h"
#include "emap/quest.h"
@@ -72,6 +73,8 @@ struct quest_db *equest_read_db_sub(config_setting_t *cs, int *nPtr, const char
return NULL;
}
+ script->set_constant2(str, quest_id, false);
+
CREATE(entry, struct quest_db, 1);
entry->id = quest_id;
//safestrncpy(entry->name, str, sizeof(entry->name));