diff --git a/drivers/pnm/bitmap_loader_pnm.cpp b/drivers/pnm/bitmap_loader_pnm.cpp index cc7f8877be2..b57533e5217 100644 --- a/drivers/pnm/bitmap_loader_pnm.cpp +++ b/drivers/pnm/bitmap_loader_pnm.cpp @@ -171,7 +171,7 @@ RES ResourceFormatPBM::load(const String &p_path,const String& p_original_path,E DVector::Read r=token.read(); int bitwidth = width; - if (bidtwidth % 8) + if (bitwidth % 8) bitwidth+=8-(bitwidth%8); for(int i=0;i