| 228 | } |
| 229 | |
| 230 | void map_lua_marker::check_register_table() |
| 231 | { |
| 232 | if (!lua_istable(dlua, -1)) |
| 233 | { |
| 234 | mprf(MSGCH_ERROR, "lua_marker: Expected table, didn't get it."); |
| 235 | initialised = false; |
| 236 | return; |
| 237 | } |
| 238 | |
| 239 | // Got a table. Save it in the registry. |
| 240 | marker_table.reset(new lua_datum(dlua)); |
| 241 | initialised = true; |
| 242 | } |
| 243 | |
| 244 | bool map_lua_marker::get_table() const |
| 245 | { |