You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix use of unitialized variables
The second in my quest to make Godot 3.x compile with -Werror on GCC7
This commit is contained in:
@@ -866,7 +866,7 @@ class EditorExportUWP : public EditorExportPlatform {
|
||||
Vector<uint8_t> _get_image_data(const Ref<EditorExportPreset> &p_preset, const String &p_path) {
|
||||
|
||||
Vector<uint8_t> data;
|
||||
StreamTexture *image;
|
||||
StreamTexture *image = NULL;
|
||||
|
||||
if (p_path.find("StoreLogo") != -1) {
|
||||
image = p_preset->get("images/store_logo").is_zero() ? NULL : Object::cast_to<StreamTexture>(((Object *)p_preset->get("images/store_logo")));
|
||||
@@ -882,6 +882,8 @@ class EditorExportUWP : public EditorExportPlatform {
|
||||
image = p_preset->get("images/wide310x150_logo").is_zero() ? NULL : Object::cast_to<StreamTexture>(((Object *)p_preset->get("images/wide310x150_logo")));
|
||||
} else if (p_path.find("SplashScreen") != -1) {
|
||||
image = p_preset->get("images/splash_screen").is_zero() ? NULL : Object::cast_to<StreamTexture>(((Object *)p_preset->get("images/splash_screen")));
|
||||
} else {
|
||||
ERR_PRINT("Unable to load logo");
|
||||
}
|
||||
|
||||
if (!image) return data;
|
||||
|
||||
Reference in New Issue
Block a user