aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/purkle
diff options
context:
space:
mode:
Diffstat (limited to 'src/purkle')
-rw-r--r--src/purkle/purkle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/purkle/purkle.c b/src/purkle/purkle.c
index 6c211c0..3ad776b 100644
--- a/src/purkle/purkle.c
+++ b/src/purkle/purkle.c
@@ -7,6 +7,7 @@
7static const char *ourName = "purkle"; 7static const char *ourName = "purkle";
8static int skang, _M; 8static int skang, _M;
9static Widget *entry, *history; 9static Widget *entry, *history;
10static winFang *me;
10 11
11static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world) 12static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world)
12{ 13{
@@ -78,7 +79,7 @@ int luaopen_purkle(lua_State *L)
78 world = gl->world; 79 world = gl->world;
79 } 80 }
80 81
81 purkleAdd(parent, 500, 420, world); 82 if (!me) me = purkleAdd(parent, 500, 420, world);
82 push_lua(L, "@ ( = )", skang, MODULEEND, _M, 0); 83 push_lua(L, "@ ( = )", skang, MODULEEND, _M, 0);
83 84
84 // Return _M, the table itself, not the index. 85 // Return _M, the table itself, not the index.