Instructions Jenkins Doxygen

[Fixed] stability issue 11/5311/1
authorIvojedi <ivojedi@swgemu.com>
Tue, 10 Jan 2017 00:12:48 +0000 (16:12 -0800)
committerIvojedi <ivojedi@swgemu.com>
Tue, 10 Jan 2017 00:12:48 +0000 (16:12 -0800)
Change-Id: Ie19ad0ceea4b90e81316f82cc1287ccdfee39afd

MMOCoreORB/src/server/zone/managers/auction/AuctionManagerImplementation.cpp

index 31ffde8..c7106ed 100644 (file)
@@ -292,8 +292,9 @@ void AuctionManagerImplementation::addSaleItem(CreatureObject* player, uint64 ob
        }
 
        // add city tax to the price
-       if(vendor->getCityRegion() != NULL) {
-               price *= (1.0f + (vendor->getCityRegion().get()->getSalesTax() / 100.0f));
+       ManagedReference<CityRegion*> city = vendor->getCityRegion().get();
+       if (city != NULL) {
+               price *= (1.0f + (city->getSalesTax() / 100.0f));
        }
 
        ManagedReference<AuctionItem*> item = createVendorItem(player, objectToSell.get(), vendor, description, price, duration, auction, premium);