mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix ByteData:set* error message.
This commit is contained in:
@@ -73,7 +73,7 @@ static int w_ByteData_setT(lua_State *L)
|
||||
int nargs = std::max(1, istable ? (int) luax_objlen(L, 3) : lua_gettop(L) - 2);
|
||||
|
||||
if (offset < 0 || offset + sizeof(T) * nargs > t->getSize())
|
||||
return luaL_error(L, "");
|
||||
return luaL_error(L, "The given offset and value parameters don't fit within the Data's size.");
|
||||
|
||||
auto data = (T *)((uint8 *) t->getData() + offset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user