Fix undefined behaviour on getting pointer to data in empty vector
authornOOb3167 <nOOb3167@gmail.com>
Fri, 22 Dec 2017 10:33:46 +0000 (11:33 +0100)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:32:00 +0000 (17:32 +0200)
commitbb219e1059b711ba9663ed42304c8c22cacf86ab
treec777991c996f0d9d566e519484f4f7fd295a94a4
parentb3167d4e5748ffd14efc5981ba8349c01808b78a
Fix undefined behaviour on getting pointer to data in empty vector

`&vector[0]` is undefined if vector.empty(), causing build failure on MSVC
src/network/networkpacket.cpp