Yardım Gaya Sistemi Yardım

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

ramazankisabey

Üye
Üye
Mesaj
8
Beğeni
1
Puan
405
Ticaret Puanı
0
Merhaba arkadaşlar herkese iyi forumlar
metin ve patron gaya sistemini ekledim
oyuna start verince karakter seçiyorum fakat loading bar da kalıyor ve ch düşüyor

şöyle bir syser alıyorum:
InitializeGemShop: DB DEN GELEN VERI: 85001

yardımcı olabilir misiniz ?

ilgili kod bloğu:
#ifdef ENABLE_GEM_SYSTEM

bool CShopManager::InitializeGemShop(TGemShopTable* table, int size)

{

    std::map<int, TGemShopTable*> map_shop;



    if (m_pGemShopTable)

    {

        delete[](m_pGemShopTable);

        m_pGemShopTable = nullptr;

    }

 

    TGemShopTable* shop_table = m_pGemShopTable;



    for (int i = 0; i < size; ++i, ++table)

    {

        if (map_shop.end() == map_shop.find(i))

        {

            shop_table = new TGemShopTable;

            memset(shop_table, 0, sizeof(TGemShopTable));



            shop_table->dwVnum = table->dwVnum;

            shop_table->bCount = table->bCount;

            shop_table->dwPrice = table->dwPrice;

            shop_table->dwRow = table->dwRow;



            map_shop = shop_table;

        }

        else

        {

            shop_table = map_shop;

        }

       

        sys_err("DB DEN GELEN VERI: %d", table->dwVnum);

    }



    m_pGemShopTable = new TGemShopTable[map_shop.size()];

    m_iGemShopTableSize = map_shop.size();



    decltype(map_shop.begin()) it = map_shop.begin();



    int i = 0;



    while (it != map_shop.end())

    {

        thecore_memcpy((m_pGemShopTable + i), (it++)->second, sizeof(TGemShopTable));

        ++i;

    }

    return true;

}
 
En son bir moderatör tarafından düzenlenmiş:
Geri
Üst