From 34807ca9fccc7425573256645024722571ef4442 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 26 Jun 2014 10:27:47 -0700 Subject: specialize inventory/storage indices --- src/char/int_storage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/char/int_storage.cpp') diff --git a/src/char/int_storage.cpp b/src/char/int_storage.cpp index 7a41f43..9527806 100644 --- a/src/char/int_storage.cpp +++ b/src/char/int_storage.cpp @@ -58,7 +58,8 @@ AString storage_tostr(Storage *p) p->account_id, p->storage_amount); int f = 0; - for (int i = 0; i < MAX_STORAGE; i++) + for (SOff0 i : SOff0::iter()) + { if (p->storage_[i].nameid && p->storage_[i].amount) { str += STRPRINTF( @@ -77,6 +78,7 @@ AString storage_tostr(Storage *p) // shouldn't that include 'broken' also? Oh, well ... f++; } + } str += '\t'; -- cgit v1.2.3-60-g2f50