mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
The Proxy struct now stores an actual love::Object pointer (rather than void*), which makes code using Proxies a bit cleaner.
--HG-- branch : minor
This commit is contained in:
@@ -102,8 +102,8 @@ Variant::Variant(love::Type udatatype, void *userdata)
|
||||
{
|
||||
Proxy *p = (Proxy *) userdata;
|
||||
flags = p->flags;
|
||||
data.userdata = p->data;
|
||||
((love::Object *) data.userdata)->retain();
|
||||
data.userdata = p->object;
|
||||
p->object->retain();
|
||||
}
|
||||
else
|
||||
data.userdata = userdata;
|
||||
|
||||
Reference in New Issue
Block a user