mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8047] Little cleanup in C++ manner.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
b91f7c9479
commit
7f3be4ae6a
2 changed files with 2 additions and 4 deletions
|
|
@ -17139,7 +17139,6 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
|
||||||
|
|
||||||
if (bagguid != NULL_BAG && slot != NULL_SLOT)
|
if (bagguid != NULL_BAG && slot != NULL_SLOT)
|
||||||
{
|
{
|
||||||
Bag *pBag;
|
|
||||||
if( bagguid == GetGUID() )
|
if( bagguid == GetGUID() )
|
||||||
{
|
{
|
||||||
bag = INVENTORY_SLOT_BAG_0;
|
bag = INVENTORY_SLOT_BAG_0;
|
||||||
|
|
@ -17148,8 +17147,7 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
|
||||||
{
|
{
|
||||||
for (int i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END;++i)
|
for (int i = INVENTORY_SLOT_BAG_START; i < INVENTORY_SLOT_BAG_END;++i)
|
||||||
{
|
{
|
||||||
pBag = (Bag*)GetItemByPos(INVENTORY_SLOT_BAG_0,i);
|
if( Bag *pBag = (Bag*)GetItemByPos(INVENTORY_SLOT_BAG_0,i) )
|
||||||
if( pBag )
|
|
||||||
{
|
{
|
||||||
if( bagguid == pBag->GetGUID() )
|
if( bagguid == pBag->GetGUID() )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8046"
|
#define REVISION_NR "8047"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue