Changeset 279 for trunk/src/game/AuctionHouse.cpp
- Timestamp:
- 11/22/08 00:36:22 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/AuctionHouse.cpp
r272 r279 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 90 90 return false; 91 91 } 92 data << auction->Id;93 data << pItem->GetUInt32Value(OBJECT_FIELD_ENTRY);92 data << (uint32) auction->Id; 93 data << (uint32) pItem->GetEntry(); 94 94 95 95 for (uint8 i = 0; i < MAX_INSPECTED_ENCHANTMENT_SLOT; i++) … … 246 246 return; 247 247 } 248 // prevent sending bag with items (cheat: can be placed in bag after adding equip ped empty bag to auction)248 // prevent sending bag with items (cheat: can be placed in bag after adding equiped empty bag to auction) 249 249 if(!it) 250 250 { … … 717 717 if (il) 718 718 { 719 if (il->Name.size() > loc_idx&& !il->Name[loc_idx].empty())719 if (il->Name.size() > size_t(loc_idx) && !il->Name[loc_idx].empty()) 720 720 name = il->Name[loc_idx]; 721 721 }