Update bnet.cpp
Merge pull request #345 from Artyom91/patch-6

Update bnet.cpp