i using one code, and i loged in and the game has ben crashed.
dbg:
0 0x082007b7 in std::__cxx11::basic_string, std::
allocator >::_M_local_data (this=) at /usr/local/lib/gcc8/include/c++/ext/new_allocator.h:81 1 std::__cxx11::basic_string, std::allocator::basic_string (this=0x0, __s=0x1 , __a=...) at /usr/local/lib/gcc8/include/c++/bits/basic_string.h:515 2 0x3cf44000 in ?? () 3 0x0812cba9 in CInputLogin::Entergame (this=, d=, data=) at ../../common/singleton.h:24 4 0x0812dea5 in CInputLogin::Analyze (this=0x2afaad6c, d=0x2afaad00, bHeader=10 '\n', c_pData=0x3cfa8ac0 "\nmetin2client.exe") at input_login.cpp:1085 5 0x081228a5 in CInputProcessor::Process (iBytes=1, r_iBytesProceed=@0xbfbfae98: 0, c_pvOrig=0x3cfa8ac0, lpDesc=0x2afaad00, this=0x2afaad6c) at input.cpp:102 6 CInputProcessor::Process (this=0x2afaad6c, lpDesc=0x2afaad00, c_pvOrig=0x3cfa8ac0, iBytes=1, r_iBytesProceed=@0xbfbfae98: 0) at input.cpp:62 7 0x080f98ce in DESC::ProcessInput (this=0x2afaad00) at desc.cpp:312 8 0x082075e5 in io_loop (fdw=0x293638e0) at main.cpp:993 9 0x08207831 in idle () at main.cpp:876 10 idle () at main.cpp:845
i think this is bad:
int pGetCompleted[] =
{
(ch->GetBiologState("biolog_lv92.completed")), (ch->GetBiologState("biolog_lv94.completed")), (ch->GetBiologState("biolog_lv92.used_window")), (ch->GetBiologState("biolog_lv94.used_window"))
};
if (pGetCompleted[1] != 1) {
BiologManager::instance().SendUpdate_Binary(ch); }
if (pGetCompleted[0] == 1 && pGetCompleted[2] < 1) {
BiologManager::instance().SendWindow_SelectType(ch, 1); }
if (pGetCompleted[1] == 1 && pGetCompleted[3] < 1) {
BiologManager::instance().SendWindow_SelectType(ch, 2); }`
Aucun commentaire:
Enregistrer un commentaire