Fix warning message in replays
This was SVN commit r8121.
This commit is contained in:
parent
db047e5bee
commit
a29bb003f2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user