Fixed parameter storage to support struct parameters.

This commit is contained in:
Anthony Kenga
2014-09-15 12:24:11 +03:00
parent 2136722237
commit 50f7e27d13
2 changed files with 3 additions and 2 deletions

View File

@@ -322,7 +322,8 @@ param_get_value_ptr(param_t param)
v = &param_info_base[param].val;
}
if (param_type(param) == PARAM_TYPE_STRUCT) {
if (param_type(param) >= PARAM_TYPE_STRUCT
&& param_type(param) <= PARAM_TYPE_STRUCT_MAX) {
result = v->p;
} else {