Instructions Jenkins Doxygen

[fixed] stability issue 13/5313/1
authorVictor Popovici <theanswer@swgemu.com>
Tue, 10 Jan 2017 19:04:07 +0000 (20:04 +0100)
committerVictor Popovici <theanswer@swgemu.com>
Tue, 10 Jan 2017 19:04:07 +0000 (20:04 +0100)
Change-Id: If1c929d90c639b03b32bf05bee228ce168ce50f5

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

index c7106ed..9996ecb 100644 (file)
@@ -572,11 +572,13 @@ void AuctionManagerImplementation::doInstantBuy(CreatureObject* player, AuctionI
        String vendorPlanetName("@planet_n:" + vendor->getZone()->getZoneName());
        String vendorRegionName = vendorPlanetName;
 
-       if( vendor->getCityRegion() != NULL){
-               city = vendor->getCityRegion().get();
+       city = vendor->getCityRegion().get();
+
+       if( city != NULL) {
                tax = item->getPrice() - ( item->getPrice() / ( 1.0f + (city->getSalesTax() / 100.f)));
                vendorRegionName = city->getRegionName();
        }
+
        String playername = player->getFirstName().toLowerCase();
 
        ManagedReference<ChatManager*> cman = zoneServer->getChatManager();