- Fixed GCC/Clang compiler errors and warnings.

This commit is contained in:
Edoardo Prezioso 2016-06-17 10:08:45 +02:00
commit 574f2936d4
3 changed files with 9 additions and 8 deletions

View file

@ -668,7 +668,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_BFGSpray)
// [XA] Set the originator of the rays to the projectile (self) if
// the new flag is set, else set it to the player (self->target)
originator = (flags & BFGF_MISSILEORIGIN) ? self : self->target;
originator = (flags & BFGF_MISSILEORIGIN) ? self : (AActor *)(self->target);
// offset angles from its attack angle
for (i = 0; i < numrays; i++)