rulegen:: fixed get_aid

This commit is contained in:
Zeno Rogue
2022-07-12 14:46:31 +02:00
parent 8fdbe7714a
commit 4bbf4a1a88
+1
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];
}