mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added some assertions
This commit is contained in:
@@ -84,6 +84,7 @@ Image BlankImage::generate(const Options& opt) const {
|
||||
int w = max(1, opt.width >= 0 ? opt.width : opt.height);
|
||||
int h = max(1, opt.height >= 0 ? opt.height : opt.width);
|
||||
Image img(w, h);
|
||||
assert(img.Ok());
|
||||
img.InitAlpha();
|
||||
memset(img.GetAlpha(), 0, w * h);
|
||||
return img;
|
||||
|
||||
Reference in New Issue
Block a user