Changeset 260 for trunk/src/game/Bag.cpp
- Timestamp:
- 11/21/08 08:47:55 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Bag.cpp
r177 r260 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 … … 42 42 for(int i = 0; i < MAX_BAG_SIZE; ++i) 43 43 if (m_bagslot[i]) 44 44 delete m_bagslot[i]; 45 45 } 46 46 … … 72 72 Object::_Create( guidlow, 0, HIGHGUID_CONTAINER ); 73 73 74 Set UInt32Value(OBJECT_FIELD_ENTRY,itemid);74 SetEntry(itemid); 75 75 SetFloatValue(OBJECT_FIELD_SCALE_X, 1.0f); 76 76 … … 86 86 SetUInt32Value(CONTAINER_FIELD_NUM_SLOTS, itemProto->ContainerSlots); 87 87 88 // Clean ning 20 slots88 // Cleaning 20 slots 89 89 for (uint8 i = 0; i < MAX_BAG_SIZE; i++) 90 90 { … … 214 214 if(m_bagslot[i]->GetGUID() == guid) 215 215 return i; 216 216 217 return NULL_SLOT; 217 218 } … … 221 222 if( slot < GetBagSize() ) 222 223 return m_bagslot[slot]; 223 224 224 225 return NULL; 225 226 }