Fix warning message in replays

This was SVN commit r8121.
This commit is contained in:
Ykkrosh 2010-09-17 17:50:43 +00:00
parent db047e5bee
commit a29bb003f2

View File

@ -139,7 +139,9 @@ void CCmpProjectileManager::LaunchProjectile(entity_id_t source, CFixedVector3D
std::wstring name = sourceVisual->GetProjectileActor();
if (name.empty())
{
LOGERROR(L"Unit with actor '%ls' launched a projectile but has no actor on 'projectile' attachpoint", sourceVisual->GetActorShortName().c_str());
// If the actor was actually loaded, complain that it doesn't have a projectile
if (!sourceVisual->GetActorShortName().empty())
LOGERROR(L"Unit with actor '%ls' launched a projectile but has no actor on 'projectile' attachpoint", sourceVisual->GetActorShortName().c_str());
return;
}