From b1774a07632d4f5c0625a41197c943738f797bfc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 7 Oct 2021 12:53:01 +0200 Subject: [PATCH] intra:: using .at instead of [] --- intra.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intra.cpp b/intra.cpp index fc8b8b6d..b5c735f0 100644 --- a/intra.cpp +++ b/intra.cpp @@ -241,7 +241,7 @@ EX map connections; EX connection_data* find_connection(int a, int b) { for(auto& p: connections) - if(intra_id[p.first.at] == a && p.second.target_world == b) + if(intra_id.at(p.first.at) == a && p.second.target_world == b) return &p.second; return nullptr; } @@ -360,12 +360,12 @@ struct resetter { #endif EX void may_switch_to(cell *c) { - if(in) switch_to(intra_id[c]); + if(in) switch_to(intra_id.at(c)); } EX int full_wall_offset(cell *c) { int wo = currentmap->wall_offset(c); - if(in) wo += data[intra_id[c]].wallindex; + if(in) wo += data[intra_id.at(c)].wallindex; return wo; }