diff --git a/cube/bmp_8.cpp b/cube/bmp_8.cpp index 3343353860..dba957a99d 100644 --- a/cube/bmp_8.cpp +++ b/cube/bmp_8.cpp @@ -971,7 +971,7 @@ bool Bmp8::LoadFromCharDumpFile(unsigned char **raw_data_ptr) { float Bmp8::ForegroundRatio() const { int fore_cnt = 0; - if (wid_ <= 0 || hgt_ <= 0) { + if (wid_ == 0 || hgt_ == 0) { return 1.0; }