mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
This commit is contained in:
@@ -87,6 +87,8 @@ Math Math::instance;
|
||||
Math::Math()
|
||||
: rng()
|
||||
{
|
||||
moduleType = M_MATH;
|
||||
|
||||
// prevent the runtime from free()-ing this
|
||||
retain();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user