diff options
Diffstat (limited to 'src/purkle')
-rw-r--r-- | src/purkle/purkle.c | 3 |
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 @@ | |||
7 | static const char *ourName = "purkle"; | 7 | static const char *ourName = "purkle"; |
8 | static int skang, _M; | 8 | static int skang, _M; |
9 | static Widget *entry, *history; | 9 | static Widget *entry, *history; |
10 | static winFang *me; | ||
10 | 11 | ||
11 | static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world) | 12 | static 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. |