mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30: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:
@@ -33,6 +33,11 @@ namespace box2d
|
||||
|
||||
int Physics::meter = Physics::DEFAULT_METER;
|
||||
|
||||
Physics::Physics()
|
||||
{
|
||||
moduleType = M_PHYSICS;
|
||||
}
|
||||
|
||||
const char *Physics::getName() const
|
||||
{
|
||||
return "love.physics.box2d";
|
||||
|
||||
Reference in New Issue
Block a user