Fix compile warning

This commit is contained in:
Sasha Szpakowski
2023-12-23 16:54:00 +01:00
parent 0be5a214dd
commit eb552dfcb6
+1 -1
View File
@@ -35,10 +35,10 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDe
, size(size)
, usageFlags(settings.usageFlags)
, dataUsage(settings.dataUsage)
, debugName(settings.debugName)
, mapped(false)
, mappedType(MAP_WRITE_INVALIDATE)
, immutable(false)
, debugName(settings.debugName)
{
if (size == 0 && arraylength == 0)
throw love::Exception("Size or array length must be specified.");