Attano / Left4Downtown2

First github clone!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash with mp_gametypes different from versus and coop

Rei-Ayanami opened this issue · comments

Hi there. I have a crashes when trying to enable an +mp_gamemode "survival" and +map c1m1. This is a simple way to reproduce an crash. But crash also become when we start a playing a survival game, and try to change a map with something tool, or just leave a server. My server try to reset a map to a first one in campaing. I understand that this can be an error in my plugin. and i can fix it. but without left4downtown2 i have not crashes when doing that describe above. I found an small "error" in code. This is a new detour in 0.5.7. In get_mission_info.cpp:

const char *meleeweapons = kv->GetString("meleeweapons", "N/A");

In case of point of "survival" gametype we got here a nil pointer and a crash.

if(!kv) {
            L4D_DEBUG_LOG("CTerrorGameRules::GetMissionInfo() keyvalue is not a valid pointer. Skip patching...");
            return kv;
}

I think its can be fixed in your repository, and other people have not get this crashes more. Thanx a lot for yours work. Sorry for my bad english. Have a nice day!

Sure, will be fixed. Thanks for your report.