Simplified an internal Variant constructor to be more intuitive to use.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-09-30 10:39:24 -03:00
parent 8068b0f1d4
commit b838d0de54
4 changed files with 33 additions and 49 deletions
+1 -4
View File
@@ -487,11 +487,8 @@ static void screenshotChannelCallback(const Graphics::ScreenshotInfo *info, love
if (channel != nullptr)
{
Proxy p;
p.type = &love::image::ImageData::type;
p.object = i;
if (i != nullptr)
channel->push(Variant(p.type, &p));
channel->push(Variant(&love::image::ImageData::type, i));
channel->release();
}