From 4a5db608432d0cf222efc5300cac78354b3a07d4 Mon Sep 17 00:00:00 2001 From: punto- Date: Mon, 11 Jan 2016 11:55:20 -0300 Subject: [PATCH] Update bitmap_loader_pnm.cpp --- drivers/pnm/bitmap_loader_pnm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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