mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Limit light_source in the engine (#4814)
Since light_source>15 causes crash, it must be limited.
This commit is contained in:
parent
bb06d377a1
commit
2fe3bf5a18
3 changed files with 9 additions and 0 deletions
|
@ -264,6 +264,7 @@ struct LightQueue {
|
|||
const mapblock_v3 &block_pos, MapBlock *block,
|
||||
direction source_dir)
|
||||
{
|
||||
assert(light <= LIGHT_SUN);
|
||||
lights[light].push_back(
|
||||
ChangingLight(rel_pos, block_pos, block, source_dir));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue