I'm trying to extract an sf::Uint8 array from a packet but receiving this compiler error in code::blocks with SFML 2.0:
C:\BW Gaming\Sandbox RPG - Server\Incoming UDP.cpp|20|error: invalid conversion from 'sf::Uint8*' to 'char*'|
even just the simple code below gives me this error, though if I change it to char it works fine. . . should this work or am I doing something wrong?
#include <SFML/Network.hpp>
void function() {
sf::Uint8 uint8[2];
sf::Packet packet;
packet >> uint8;
}
Thanks!