Skip to content

Commit b183482

Browse files
committed
crash fix
1 parent 3e5bedd commit b183482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/proxy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ namespace ep {
389389
return false;
390390
};
391391

392-
person->update_state(*reinterpret_cast<ep::state_t*>(is_udp + 10));
392+
person->update_state(static_cast<ep::state_t>(is_udp + 10));
393393
std::thread([this, person] {personal_network(person); }).detach();
394394

395395
unsigned char packet[10] = { 0x05, 0x00, 0x00, 0x01 };

0 commit comments

Comments
 (0)