mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Merge pull request #8355 from Patiga/fix-pixelart
Fix off-by-one error in map_create_pixelart
This commit is contained in:
commit
03b13cb9f5
|
@ -94,7 +94,7 @@ bool CreatePixelArt(const char aFilenames[3][IO_MAX_PATH_LENGTH], const int aLay
|
|||
|
||||
InsertCurrentQuads(InputMap, pQuadLayer, pQuads);
|
||||
int QuadsCounter = InsertPixelArtQuads(pQuads, pQuadLayer->m_NumQuads, Img, aStartingPos, aPixelSizes, aArtOptions);
|
||||
SaveOutputMap(InputMap, OutputMap, pQuadLayer, ItemNumber, pQuads, ((int)sizeof(CQuad)) * (pQuadLayer->m_NumQuads + 1));
|
||||
SaveOutputMap(InputMap, OutputMap, pQuadLayer, ItemNumber, pQuads, (int)sizeof(CQuad) * pQuadLayer->m_NumQuads);
|
||||
delete[] pQuads;
|
||||
|
||||
dbg_msg("map_create_pixelart", "INFO: successfully added %d new pixelart quads.", QuadsCounter);
|
||||
|
|
Loading…
Reference in a new issue