diff --git a/src/Clip.cpp b/src/Clip.cpp index e3f33a18..1a86c644 100644 --- a/src/Clip.cpp +++ b/src/Clip.cpp @@ -914,7 +914,7 @@ void Clip::SetJsonValue(Json::Value root) { if (!existing_effect["type"].isNull()) { // Create instance of effect - if (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) { + if ( (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) ) { // Load Json into Effect e->SetJsonValue(existing_effect); diff --git a/src/Timeline.cpp b/src/Timeline.cpp index 51868157..2cb948a4 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -1098,7 +1098,7 @@ void Timeline::SetJsonValue(Json::Value root) { if (!existing_effect["type"].isNull()) { // Create instance of effect - if (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) { + if ( (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) ) { // Load Json into Effect e->SetJsonValue(existing_effect); @@ -1364,7 +1364,7 @@ void Timeline::apply_json_to_effects(Json::Value change, EffectBase* existing_ef EffectBase *e = NULL; // Init the matching effect object - if (e = EffectInfo().CreateEffect(effect_type)) { + if ( (e = EffectInfo().CreateEffect(effect_type)) ) { // Load Json into Effect e->SetJsonValue(change["value"]);