Fixed possible issue with GCC/Clang

This commit is contained in:
Edward Richardson 2016-02-05 12:52:29 +13:00
parent b3b0886b64
commit f2025e6a2f
1 changed files with 1 additions and 1 deletions

View File

@ -1408,7 +1408,7 @@ inline T *Spawn (fixed_t x, fixed_t y, fixed_t z, replace_t allowreplacement)
template<class T>
inline T *Spawn (const fixedvec3 &pos, replace_t allowreplacement)
{
return static_cast<T *>(AActor::StaticSpawn (RUNTIME_CLASS(T), pos.x, pos.y, pos.z, allowreplacement));
return static_cast<T *>(AActor::StaticSpawn (RUNTIME_TEMPLATE_CLASS(T), pos.x, pos.y, pos.z, allowreplacement));
}
inline fixedvec2 Vec2Angle(fixed_t length, angle_t angle)