Update MediaWiki page '317 Update item container'

This commit is contained in:
Pure_ 2014-06-24 12:40:44 +00:00 committed by moparisthebest
parent 4889195bc2
commit 2c16bdcb30
1 changed files with 2 additions and 3 deletions

View File

@ -27,9 +27,8 @@ The rest in pseudo-code:
for (int i = 0; i < amt_of_items; i++) {
item_amount = read_u_byte(); // Item Amount: U Byte
if (item_amount == 255)
if (item_amount == 255) {
item_amount = read_int_me_b(); // Item Amount (if entered as 255 previously - to allow bigger amounts than 254): Integer Middle-Endian Big (Inverse middle)
}
item_id = read_u_short_le_a(); // Item ID: U Short Little Endian Special A
}