git repos / saland

commit 06045989

sago007 · 2020-12-30 13:02
0604598944c41d736c05f2a2b53f3327c0d5ee82 patch · browse files
parent cb00975123b64f308c7ea843b3e53158c4b7a656

Fixed a type misspelling which caused the Windows version to not compile

Changed files

M src/sagotmx/tmx_struct.h before
diff --git a/src/sagotmx/tmx_struct.h b/src/sagotmx/tmx_struct.h index 406010b..1e50ee9 100644 --- a/src/sagotmx/tmx_struct.h +++ b/src/sagotmx/tmx_struct.h
@@ -642,7 +642,7 @@ inline TileLayer createEmptyLayerForMap(const TileMap& tm) {
TileLayer t;
t.width = tm.width;
t.height = tm.height;
- t.data.payload.resize(t.width*t.height*sizeof(u_int32_t));
+ t.data.payload.resize(t.width*t.height*sizeof(uint32_t));
std::string& data = t.data.payload;
memset(&data[0], 0, data.size());
return t;