projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rnd-20140212-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index f08c88c762aa1519e71965eee0e58f6a2b92eb1a..9ac05663bfc373f59d4dd6d73756d65663a2a67c 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-685,6
+685,9
@@
void BlitBitmap(Bitmap *src_bitmap, Bitmap *dst_bitmap,
int dst_x_unclipped = dst_x;
int dst_y_unclipped = dst_y;
+ if (src_bitmap == NULL || dst_bitmap == NULL)
+ return;
+
if (DrawingDeactivated(dst_x, dst_y, width, height))
return;