Do not use strstr()
This commit is contained in:
parent
da275733bc
commit
7da58623be
3 changed files with 5 additions and 5 deletions
|
|
@ -576,7 +576,7 @@ void Bot::updatePickups () {
|
|||
allowPickup = true;
|
||||
pickupType = Pickup::PlantedC4;
|
||||
}
|
||||
else if (cv_pickup_custom_items.bool_ () && util.isItem(ent) && strncmp ("item_thighpack", classname, 14) != 0) {
|
||||
else if (cv_pickup_custom_items.bool_ () && util.isItem (ent) && strncmp ("item_thighpack", classname, 14) != 0) {
|
||||
allowPickup = true;
|
||||
pickupType = Pickup::None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue