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:
Alex Szpakowski
2014-07-21 14:52:01 -03:00
parent e87fbdcaaf
commit 014b9a46e5
45 changed files with 432 additions and 316 deletions
+2
View File
@@ -87,6 +87,8 @@ Math Math::instance;
Math::Math()
: rng()
{
moduleType = M_MATH;
// prevent the runtime from free()-ing this
retain();
}