Skip to content

Commit 993e00e

Browse files
committed
!fixup Parameter handles
1 parent 09f24dc commit 993e00e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

avs/vis_avs/effect_library.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ static std::unordered_map<std::string, uint32_t> find_duplicate_effect_names(
4242

4343
static bool check_handle_collision(AVS_Parameter_Handle handle,
4444
const std::string& path) {
45-
if (auto other = g_param_map.find(handle); other != g_param_map.end()) {
45+
auto other = g_param_map.find(handle);
46+
if (other != g_param_map.end()) {
4647
// TODO[feature]: Find out effect/path for other parameter, so that the error
4748
// message becomes more actionable.
4849
log_err(

0 commit comments

Comments
 (0)