fix get_spellbook with cb_find_str.

This commit is contained in:
Enno Rehling 2017-09-18 19:35:37 +02:00
parent 6d79f5fad1
commit 02ed1dfe0c

View file

@ -3013,7 +3013,8 @@ spellbook * get_spellbook(const char * name)
spellbook * result; spellbook * result;
void * match; void * match;
if (cb_find_prefix(&cb_spellbooks, name, strlen(name), &match, 1, 0) > 0) { match = cb_find_str(&cb_spellbooks, name);
if (match) {
cb_get_kv(match, &result, sizeof(result)); cb_get_kv(match, &result, sizeof(result));
} }
else { else {