Fix crash with [special_filter].

This commit is contained in:
Dominic Bolin 2006-02-19 23:49:36 +00:00
parent 8b3d232832
commit 7576302315

View file

@ -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;