mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 05:44:32 +00:00
Zero-initialize Png struct width and height just in case
This commit is contained in:
+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