1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

rulegen:: fixed get_aid

This commit is contained in:
Zeno Rogue 2022-07-12 12:16:28 +02:00
parent 8fdbe7714a
commit 4bbf4a1a88

View File

@ -1735,6 +1735,7 @@ EX namespace reg3 {
EX int get_aid(cell *c) {
auto m = dynamic_cast<hrmap_h3*> (currentmap);
if(!m) throw hr_exception("get_aid incorrect");
if(PURE) return c->master->fieldval;
return m->cell_id[c];
}