diff --git a/source/ngc/gui/gui_image.cpp b/source/ngc/gui/gui_image.cpp index 0bfdd81..6f15f48 100644 --- a/source/ngc/gui/gui_image.cpp +++ b/source/ngc/gui/gui_image.cpp @@ -94,9 +94,15 @@ u8 * GuiImage::GetImage() void GuiImage::SetImage(GuiImageData * img) { - image = img->GetImage(); - width = img->GetWidth(); - height = img->GetHeight(); + image = NULL; + width = 0; + height = 0; + if(img) + { + image = img->GetImage(); + width = img->GetWidth(); + height = img->GetHeight(); + } imgType = IMAGE_DATA; }