summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fxcodec/lgif/cgifcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/lgif/cgifcontext.cpp b/core/fxcodec/lgif/cgifcontext.cpp
index b1de89f2b6..21e896405f 100644
--- a/core/fxcodec/lgif/cgifcontext.cpp
+++ b/core/fxcodec/lgif/cgifcontext.cpp
@@ -286,7 +286,7 @@ GifDecodeStatus CGifContext::LoadFrame(int32_t frame_num) {
}
if (!m_ImgDecoder.get())
m_ImgDecoder =
- CFX_LZWDecoder::Create(gif_image_ptr->m_LocalPalettes.empty()
+ CFX_LZWDecoder::Create(!gif_image_ptr->m_LocalPalettes.empty()
? gif_image_ptr->local_pallette_exp
: global_pal_exp,
gif_image_ptr->image_code_exp);