diff --git a/src/actor.h b/src/actor.h index f97d093c0..86bfd9796 100644 --- a/src/actor.h +++ b/src/actor.h @@ -1408,7 +1408,7 @@ inline T *Spawn (fixed_t x, fixed_t y, fixed_t z, replace_t allowreplacement) template inline T *Spawn (const fixedvec3 &pos, replace_t allowreplacement) { - return static_cast(AActor::StaticSpawn (RUNTIME_CLASS(T), pos.x, pos.y, pos.z, allowreplacement)); + return static_cast(AActor::StaticSpawn (RUNTIME_TEMPLATE_CLASS(T), pos.x, pos.y, pos.z, allowreplacement)); } inline fixedvec2 Vec2Angle(fixed_t length, angle_t angle)