# HG changeset patch # User zipi # Date 1363292455 0 # Node ID 28109e4eee44b1a27d2225fecf0a2c1fec610562 # Parent 8c6c41037c39a88773ba1d3b158e802c86f39503 standard weapon shop fix diff -r 8c6c41037c39 -r 28109e4eee44 UIHouses.cpp --- a/UIHouses.cpp Thu Mar 14 20:04:21 2013 +0000 +++ b/UIHouses.cpp Thu Mar 14 20:20:55 2013 +0000 @@ -1514,7 +1514,7 @@ do { // if ( pParty->field_777C[9 * (int)&v48[3 * (unsigned int)window_SpeakInHouse->ptr_1C]] ) - if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][(int)v48].uItemID); + if ( pParty->StandartItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][(int)v48].uItemID) { v49 = word_F8B158[(signed int)v48]; v50 = ItemsInShopTexture[(signed int)v48]; diff -r 8c6c41037c39 -r 28109e4eee44 mm7_2.cpp --- a/mm7_2.cpp Thu Mar 14 20:04:21 2013 +0000 +++ b/mm7_2.cpp Thu Mar 14 20:20:55 2013 +0000 @@ -1757,8 +1757,8 @@ // v31 = 9 * (v29 - 1 + 12 * (int)v30); if ( dialog_menu_id == 2 ) { - v32 = (ItemGen *)&pParty->StandartItemsInShops[(int)v30][v29]; - _this = (ItemGen *)&pParty->StandartItemsInShops[(int)v30][v29]; + v32 = (ItemGen *)&pParty->StandartItemsInShops[(int)v30][v29-1]; + _this = (ItemGen *)&pParty->StandartItemsInShops[(int)v30][v29-1]; } else {