diff --git a/src/bindings/wasm/tvgWasmLottieAnimation.cpp b/src/bindings/wasm/tvgWasmLottieAnimation.cpp index 4e40f80f..96fea18e 100644 --- a/src/bindings/wasm/tvgWasmLottieAnimation.cpp +++ b/src/bindings/wasm/tvgWasmLottieAnimation.cpp @@ -132,7 +132,7 @@ public: if (engine == "sw") this->engine = new TvgSwEngine; else if (engine == "wg") this->engine = new TvgWgEngine; - if (!engine) { + if (!this->engine) { errorMsg = "Invalid engine"; return; }