From ff974b82d155b7c6c5bb52355ff9e32ea4dc4494 Mon Sep 17 00:00:00 2001 From: Y0SH1M4S73R Date: Mon, 6 Sep 2021 05:35:15 -0400 Subject: [PATCH] fixes sdql spell parsing (#61248) --- code/modules/admin/verbs/SDQL2/SDQL_spells/spell_edit_menu.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_spells/spell_edit_menu.dm b/code/modules/admin/verbs/SDQL2/SDQL_spells/spell_edit_menu.dm index 609d6a742d7..00ffcfb82e6 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_spells/spell_edit_menu.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_spells/spell_edit_menu.dm @@ -567,9 +567,9 @@ GLOBAL_LIST_INIT_TYPED(sdql_spells, /obj/effect/proc_holder/spell, list()) if(!(temp_list_vars[V][W]["flags"] & LIST_VAR_FLAGS_NAMED)) parse_errors += "[V]/[W] did not have the LIST_VAR_FLAGS_NAMED flag set; it has been set" temp_list_vars[V][W]["flags"] |= LIST_VAR_FLAGS_NAMED - if(temp_list_vars & ~(LIST_VAR_FLAGS_NAMED | LIST_VAR_FLAGS_NAMED)) + if(temp_list_vars & ~(LIST_VAR_FLAGS_NAMED | LIST_VAR_FLAGS_TYPED)) parse_errors += "[V]/[W] has unused bit flags set; they have been unset" - temp_list_vars[V][W]["flags"] &= LIST_VAR_FLAGS_NAMED | LIST_VAR_FLAGS_NAMED + temp_list_vars[V][W]["flags"] &= LIST_VAR_FLAGS_NAMED | LIST_VAR_FLAGS_TYPED if(!(temp_list_vars[V][W]["flags"] & LIST_VAR_FLAGS_TYPED)) if(isnull(sample.vars[W])) continue