MesoX/arcemu — comment on commit 84e3ea7203f89042b08424e8a16ab79c94046c16
File: src/arcemu-world/Player.cpp line 13649
By jackpoz:

if CanUseItem() is never called with proto as NULL and can't be called with NULL as parameter, then there should be an assert instead of a NULL check. Looking at the code, the proto parameter is dereferenced before passing it to this method.