mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
modules/console: Fix event refs arg requirement; type reflection lookup.
This commit is contained in:
parent
7b3f0a1874
commit
2ea3cdcc9b
1 changed files with 2 additions and 2 deletions
|
@ -7606,7 +7606,7 @@ console_cmd__event__refs(opt &out, const string_view &line)
|
||||||
|
|
||||||
const string_view &typestr
|
const string_view &typestr
|
||||||
{
|
{
|
||||||
param.at("type")
|
param["type"]
|
||||||
};
|
};
|
||||||
|
|
||||||
m::dbs::ref type
|
m::dbs::ref type
|
||||||
|
@ -7618,7 +7618,7 @@ console_cmd__event__refs(opt &out, const string_view &line)
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!empty(typestr))
|
if(!empty(typestr))
|
||||||
for(; uint8_t(type) < sizeof(m::dbs::ref) * 8; type = m::dbs::ref(uint8_t(type) + 1))
|
for(; uint8_t(type) < sizeof(m::dbs::ref) * 256; type = m::dbs::ref(uint8_t(type) + 1))
|
||||||
if(reflect(type) == typestr)
|
if(reflect(type) == typestr)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue