--- deliantra/server/include/face.h 2009/11/11 23:27:57 1.30 +++ deliantra/server/include/face.h 2010/01/16 00:08:33 1.32 @@ -26,7 +26,7 @@ #include #include -#define CHKSUM_SIZE 6 +#define CHKSUM_MAXLEN 15 #define MAX_FACES 10000 // stupid gcfclient artificially limits typedef uint16 faceidx; @@ -36,7 +36,12 @@ struct facedata { std::string data; - uint8 chksum[CHKSUM_SIZE]; + uint8 chksum[CHKSUM_MAXLEN]; + uint8 chksum_len; + + facedata () + : chksum_len (0) + { } }; /* New face structure - this enforces the notion that data is face by