Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Баг-репорты (http://mangos.ytdb.ru/forumdisplay.php?f=27)
-   -   [crash]tele (http://mangos.ytdb.ru/showthread.php?t=5432)

partizanes 13.05.2012 01:13

[crash]tele
 
Вложений: 1
[11994] clean
воспроизводим пишем в чат комманду
Код:

.tele темный портал
пробел решает))



level1.cpp
Код:

GameTele const* tele = ExtractGameTeleFromLink(&args);
Chat.cpp

Код:

GameTele const* ChatHandler::ExtractGameTeleFromLink(char** text)
{
    // id, or string, or [name] Shift-click form |color|Htele:id|h[name]|h|r
    char* cId = ExtractKeyFromLink(text,"Htele");
    if (!cId)
        return NULL;

    // id case (explicit or from shift link)
    uint32 id;
    if (ExtractUInt32(&cId, id))
        return sObjectMgr.GetGameTele(id);
    else
        return sObjectMgr.GetGameTele(cId);
}

крашится вот тут
Код:

char* ChatHandler::ExtractKeyFromLink(char** text, char const* linkType, char** something1 /*= NULL*/)
{
    char const* linkTypes[2];
    linkTypes[0] = linkType;
    linkTypes[1] = NULL;

    int foundIdx;

    return ExtractKeyFromLink(text, linkTypes, &foundIdx, something1);
}

не очень понял вот это ( не углублялся в суть ,через 5 часов на работу )))


Текущее время: 22:21. Часовой пояс GMT +3.

ru-mangos.ru - Русское сообщество MaNGOS