0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

modules/console: Fix event refs arg requirement; type reflection lookup.

This commit is contained in:
Jason Volk 2019-12-09 13:41:49 -08:00
parent 7b3f0a1874
commit 2ea3cdcc9b

View file

@ -7606,7 +7606,7 @@ console_cmd__event__refs(opt &out, const string_view &line)
const string_view &typestr
{
param.at("type")
param["type"]
};
m::dbs::ref type
@ -7618,7 +7618,7 @@ console_cmd__event__refs(opt &out, const string_view &line)
};
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)
break;