diff options
Diffstat (limited to 'src/char/int_storage.cpp')
-rw-r--r-- | src/char/int_storage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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'; |