mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-05 19:56:18 +00:00
Zero-initialize Png struct width and height just in case
This commit is contained in:
1 parent
0d379e9016
commit
e5b03e3cb1
1 file changed
+2
-1
+2
-1
@@ -10,7 +10,8 @@
|
||||
#include "gfx/rgba.hpp"
|
||||
|
||||
struct Png {
|
||||
uint32_t width, height;
|
||||
uint32_t width = 0;
|
||||
uint32_t height = 0;
|
||||
std::vector<Rgba> pixels{};
|
||||
std::vector<Rgba> palette{};
|
||||
|
||||
|
||||
Reference in new issue
Block a user