1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-01 23:06:41 +00:00

Fix dereference of null pointer warning

This commit is contained in:
Allofich 2016-11-07 00:28:22 +09:00
parent 7af1e09151
commit c7313606f5

View file

@ -51,6 +51,7 @@ namespace
{ {
for (int x=0; x<128; ++x) for (int x=0; x<128; ++x)
{ {
assert(image->data(x,y));
*(image->data(x,y)+2) = *it++; *(image->data(x,y)+2) = *it++;
*(image->data(x,y)+1) = *it++; *(image->data(x,y)+1) = *it++;
*image->data(x,y) = *it++; *image->data(x,y) = *it++;