mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-23 22:40:08 +00:00
fixed a potential crash caused by reentrant hybrid::link
This commit is contained in:
parent
56e9f95656
commit
4d5928fcc0
@ -1216,7 +1216,11 @@ EX namespace hybrid {
|
||||
|
||||
EX void will_link(cell *c) { if(pmap && ((hrmap_hybrid*) pmap)->twisted) to_link.push_back(c); }
|
||||
|
||||
EX bool in_link = false;
|
||||
|
||||
EX void link() {
|
||||
if(in_link) return;
|
||||
dynamicval<bool> b(in_link, true);
|
||||
auto pm = (hrmap_hybrid*) pmap;
|
||||
if(!pm) return;
|
||||
auto& ss = pm->spins;
|
||||
|
Loading…
x
Reference in New Issue
Block a user