lua method GetValue: use Enum::Check<RadarCategory> for param
This commit is contained in:
@@ -94,7 +94,7 @@ void RadarValues::FromString( RString sRadarValues )
|
||||
class LunaRadarValues: public Luna<RadarValues>
|
||||
{
|
||||
public:
|
||||
static int GetValue( T* p, lua_State *L ) { lua_pushnumber( L, (*p)[IArg(1)] ); return 1; }
|
||||
static int GetValue( T* p, lua_State *L ) { lua_pushnumber( L, (*p)[Enum::Check<RadarCategory>(L, 1)] ); return 1; }
|
||||
|
||||
LunaRadarValues()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user