From 780a0d771edbe21dcfa3405163ffbdf7f7fa4604 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 13 Oct 2014 13:16:34 -0700 Subject: Convert container lookups to use Option> --- src/char/char.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/char/char.cpp') diff --git a/src/char/char.cpp b/src/char/char.cpp index 4f52663..98a2178 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -1506,7 +1506,7 @@ void parse_tologin(Session *ls) CharKey *k = &cp.key; CharData& cd = *cp.data.get(); CharData *c = &cd; - Storage *s = account2storage(k->account_id); + Borrowed s = account2storage(k->account_id); int changes = 0; #define FIX(v) if (v == source_id) {v = dest_id; ++changes; } for (IOff0 j : IOff0::iter()) @@ -1520,7 +1520,6 @@ void parse_tologin(Session *ls) FIX(c->head_mid); FIX(c->head_bottom); - if (s) { for (SOff0 j : SOff0::iter()) { -- cgit v1.2.3-60-g2f50