mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor: add 'const' qualifier for content units
This commit is contained in:
parent
2689e13cea
commit
333cbfe6f5
5 changed files with 7 additions and 15 deletions
|
|
@ -360,7 +360,7 @@ static int l_raycast(lua::State* L) {
|
|||
for (int i = 0; i < addLen; i++) {
|
||||
lua::rawgeti(L, i + 1, 5);
|
||||
auto blockName = std::string(lua::tostring(L, -1));
|
||||
Block* block = content->blocks.find(blockName);
|
||||
const Block* block = content->blocks.find(blockName);
|
||||
if (block != nullptr) {
|
||||
filteredBlocks.insert(block->rt.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue