mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-17 07:07:38 +00:00
Fix UB when sorting empty vecs
This commit is contained in:
@@ -331,7 +331,7 @@ void find_track(cell *start, int sign, int len) {
|
||||
}
|
||||
|
||||
EX void block_cells(vector<cell*> to_block, function<bool(cell*)> blockbound) {
|
||||
hrandom_shuffle(&to_block[0], isize(to_block));
|
||||
hrandom_shuffle(to_block);
|
||||
|
||||
for(cell *c: to_block) switch(specialland) {
|
||||
case laIce:
|
||||
|
Reference in New Issue
Block a user