diff options
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r-- | src/MenuCreator.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc index 9898b61..56b90c0 100644 --- a/src/MenuCreator.cc +++ b/src/MenuCreator.cc | |||
@@ -194,6 +194,7 @@ createMenu_(FbTk::Menu &inject_into, lua::state &l, FbTk::StringConvertor &conv, | |||
194 | void | 194 | void |
195 | insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_conv, | 195 | insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_conv, |
196 | FbTk::AutoReloadHelper *reloader) { | 196 | FbTk::AutoReloadHelper *reloader) { |
197 | _FB_USES_NLS; | ||
197 | lua::stack_sentry s(l, -1); | 198 | lua::stack_sentry s(l, -1); |
198 | l.checkstack(1); | 199 | l.checkstack(1); |
199 | 200 | ||
@@ -318,6 +319,7 @@ MenuCreator::createMenu(FbTk::Menu &inject_into, lua::state &l, FbTk::AutoReload | |||
318 | lua::stack_sentry s(l, -1); | 319 | lua::stack_sentry s(l, -1); |
319 | 320 | ||
320 | if(l.type(-1) != lua::TTABLE) { | 321 | if(l.type(-1) != lua::TTABLE) { |
322 | _FB_USES_NLS; | ||
321 | cerr << _FB_CONSOLETEXT(Menu, MenuNotTable, "Warning: Menu is not a lua table", | 323 | cerr << _FB_CONSOLETEXT(Menu, MenuNotTable, "Warning: Menu is not a lua table", |
322 | "Menu is not a lua table") << endl; | 324 | "Menu is not a lua table") << endl; |
323 | return; | 325 | return; |