summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-08 11:22:06 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:00:32 +0100
commit4b873e6e6520e827aae689bf15dd6adac97473f7 (patch)
tree1bcf26d96f3ee2384e4097263c7d74c01ef7c421
parenta204a38963ee6e5233876b00dd658c804e994940 (diff)
downloadhercules-4b873e6e6520e827aae689bf15dd6adac97473f7.tar.gz
hercules-4b873e6e6520e827aae689bf15dd6adac97473f7.tar.bz2
hercules-4b873e6e6520e827aae689bf15dd6adac97473f7.tar.xz
hercules-4b873e6e6520e827aae689bf15dd6adac97473f7.zip
Removed some now unnecessary explicit casts of the RBUFP result
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 000abe96d..037d2acf3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -12858,8 +12858,8 @@ bool clif_validate_emblem(const uint8 *emblem, unsigned long emblem_len) {
switch( RBUFW(buf,28) ) {
case 8: // palette indexes
{
- const uint8 *indexes = (const uint8 *)RBUFP(buf,offbits);
- const uint32 *palette = (const uint32 *)RBUFP(buf,BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE);
+ const uint8 *indexes = RBUFP(buf,offbits);
+ const uint32 *palette = RBUFP(buf,BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE);
for (i = 0; i < BITMAP_WIDTH * BITMAP_HEIGHT; i++) {
if( indexes[i] >= palettesize ) // Invalid color
@@ -12877,7 +12877,7 @@ bool clif_validate_emblem(const uint8 *emblem, unsigned long emblem_len) {
}
case 24: // full colors
{
- const struct s_bitmaptripple *pixels = (const struct s_bitmaptripple*)RBUFP(buf,offbits);
+ const struct s_bitmaptripple *pixels = RBUFP(buf,offbits);
for (i = 0; i < BITMAP_WIDTH * BITMAP_HEIGHT; i++) {
// if( pixels[i].r < 0xF8 || pixels[i].g > 0x07 || pixels[i].b < 0xF8 )