summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-25 01:15:05 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-25 01:15:05 +0300
commit7115a2a0ff13a16609fb8fa516dcdf17cd773ee0 (patch)
treec2339cf901b3e61884a7a3002b9f10f8bdfc1bb6
parent78816fc57d05c56b4cbf2f920b5679051e593197 (diff)
downloadplugin-7115a2a0ff13a16609fb8fa516dcdf17cd773ee0.tar.gz
plugin-7115a2a0ff13a16609fb8fa516dcdf17cd773ee0.tar.bz2
plugin-7115a2a0ff13a16609fb8fa516dcdf17cd773ee0.tar.xz
plugin-7115a2a0ff13a16609fb8fa516dcdf17cd773ee0.zip
Add craft names into constants.
-rw-r--r--src/emap/craftconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/craftconf.c b/src/emap/craftconf.c
index 6b82a63..22c9d0f 100644
--- a/src/emap/craftconf.c
+++ b/src/emap/craftconf.c
@@ -327,6 +327,8 @@ static bool craft_read_db_sub(config_setting_t *craftt, int id, const char *sour
safestrncpy(entry->name, str, sizeof(entry->name));
+ script->set_constant2(entry->name, entry->id, false, false);
+
//ShowInfo("Craft: id=%d, name=%s\n", class_, entry->name);
readField("Priority", priority, 0);