forked from github/server
compilation errors
This commit is contained in:
parent
d808de65c8
commit
383dc8ad15
|
@ -2,13 +2,10 @@
|
|||
#define LUA_OBJECTS_H
|
||||
|
||||
#include <attributes/object.h>
|
||||
#include <luabind/object.hpp>
|
||||
|
||||
struct lua_State;
|
||||
|
||||
namespace luabind {
|
||||
class object;
|
||||
};
|
||||
|
||||
namespace eressea {
|
||||
|
||||
class objects {
|
||||
|
@ -28,7 +25,7 @@ namespace eressea {
|
|||
template<class T> eressea::objects
|
||||
get_objects(const T& parent)
|
||||
{
|
||||
return eressea::objects(&const_cast<attrib *>(parent.attribs));
|
||||
return eressea::objects(&const_cast<attrib *&>(parent.attribs));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -243,12 +243,6 @@ region_move(region& r, short x, short y)
|
|||
rhash(&r);
|
||||
}
|
||||
|
||||
eressea::objects
|
||||
region_objects(const region& r)
|
||||
{
|
||||
return eressea::objects(&const_cast<attrib *>(r.attribs));
|
||||
}
|
||||
|
||||
void
|
||||
bind_region(lua_State * L)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue