mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-01 19:41:24 +00:00
Merge pull request #1123 from Allofich/warnings
Fix dereference of null pointer warning
This commit is contained in:
commit
92d42ef49b
1 changed files with 1 additions and 0 deletions
|
@ -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++;
|
||||||
|
|
Loading…
Reference in a new issue