1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fix inverted value check in UWP export packager

This commit is contained in:
George Marques
2019-11-25 11:20:59 -03:00
parent 5ddce7a9df
commit 5d7c13dcbb

View File

@@ -517,7 +517,7 @@ Error AppxPackager::add_file(String p_file_name, const uint8_t *p_buffer, size_t
int total_out_before = strm.total_out; int total_out_before = strm.total_out;
int err = deflate(&strm, Z_FULL_FLUSH); int err = deflate(&strm, Z_FULL_FLUSH);
ERR_FAIL_COND_V(err >= 0, ERR_BUG); // Negative means bug ERR_FAIL_COND_V(err < 0, ERR_BUG); // Negative means bug
bh.compressed_size = strm.total_out - total_out_before; bh.compressed_size = strm.total_out - total_out_before;