Fix crash with [special_filter].
This commit is contained in:
parent
8b3d232832
commit
7576302315
1 changed files with 3 additions and 0 deletions
|
@ -1732,6 +1732,9 @@ namespace game_events {
|
|||
|
||||
bool matches_special_filter(const config* cfg, const vconfig filter)
|
||||
{
|
||||
if(!cfg) {
|
||||
return false;
|
||||
}
|
||||
if(filter["weapon"] != "") {
|
||||
if(filter["weapon"] != (*cfg)["weapon"]) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue