mirror of
https://github.com/love2d/love.git
synced 2026-08-13 09:00:54 +02:00
Fix number of arguments check in w_ParticleSystem_setSizes.
This commit is contained in:
@@ -151,9 +151,10 @@ namespace opengl
|
||||
if (nSizes > 8)
|
||||
return luaL_error(L, "At most eight (8) sizes may be used.");
|
||||
|
||||
if (nSizes == 1)
|
||||
if (nSizes <= 1)
|
||||
{
|
||||
t->setSize(luax_checkfloat(L, 2));
|
||||
float size = luax_checkfloat(L, 2);
|
||||
t->setSize(size);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user