1
0
forked from 0ad/0ad

Fixes a mistype introduced in 283f524fcf. A smaller size might cause a write to an allocated memory.

This was SVN commit r25592.
This commit is contained in:
Vladislav Belov 2021-05-29 20:07:15 +00:00
parent 57dde8d082
commit dacbab8b02

View File

@ -46,7 +46,7 @@ public:
{
const SColor4ub color32 = color.AsSColor4ub();
// Construct 1x1 32-bit texture
std::shared_ptr<u8> data(new u8[3], ArrayDeleter());
std::shared_ptr<u8> data(new u8[4], ArrayDeleter());
data.get()[0] = color32.R;
data.get()[1] = color32.G;
data.get()[2] = color32.B;