forked from github/server
fix get_spellbook with cb_find_str.
This commit is contained in:
parent
6d79f5fad1
commit
02ed1dfe0c
1 changed files with 2 additions and 1 deletions
|
@ -3013,7 +3013,8 @@ spellbook * get_spellbook(const char * name)
|
|||
spellbook * result;
|
||||
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));
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue