summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/eolian/common_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian/common_funcs.c b/src/bin/eolian/common_funcs.c
index 13d5ffc5c7..1e25699a82 100644
--- a/src/bin/eolian/common_funcs.c
+++ b/src/bin/eolian/common_funcs.c
@@ -81,12 +81,12 @@ _class_func_env_create(const Eolian_Class *class, const char *funcname, Eolian_F
81 suffix = "_get"; 81 suffix = "_get";
82 legacy = eolian_function_legacy_get(funcid, ftype); 82 legacy = eolian_function_legacy_get(funcid, ftype);
83 } 83 }
84 if (ftype == EOLIAN_PROP_SET) 84 else if (ftype == EOLIAN_PROP_SET)
85 { 85 {
86 suffix = "_set"; 86 suffix = "_set";
87 legacy = eolian_function_legacy_get(funcid, ftype); 87 legacy = eolian_function_legacy_get(funcid, ftype);
88 } 88 }
89 if (!legacy) legacy = eolian_function_legacy_get(funcid, EOLIAN_METHOD); 89 else legacy = eolian_function_legacy_get(funcid, EOLIAN_METHOD);
90 90
91 _eolian_class_vars tmp_env; 91 _eolian_class_vars tmp_env;
92 _class_env_create(class, NULL, &tmp_env); 92 _class_env_create(class, NULL, &tmp_env);