mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-06 23:42:55 +02:00
sizeof(unsigned char)
This commit is contained in:
parent
5cf3fa3f5b
commit
e9d80fe52a
@ -1982,7 +1982,7 @@ int LuaScriptInterface::simulation_brush(lua_State * l)
|
||||
lua_pushnumber(l, sizeY);
|
||||
lua_pushnumber(l, 0);
|
||||
lua_pushnumber(l, 0);
|
||||
int bitmapSize = sizeX * sizeY;
|
||||
int bitmapSize = sizeX * sizeY * sizeof(unsigned char);
|
||||
void *bitmapCopy = lua_newuserdata(l, bitmapSize);
|
||||
memcpy(bitmapCopy, brushList[brushID]->GetBitmap(), bitmapSize);
|
||||
brushList[brushID]->SetRadius(tempRadius);
|
||||
|
Loading…
x
Reference in New Issue
Block a user