ITraitInfo, plumbing in NewUnitInfo

This commit is contained in:
Chris Forbes
2010-01-10 12:34:17 +13:00
parent fe8b13591f
commit 5fb2f91281
8 changed files with 44 additions and 12 deletions

View File

@@ -92,7 +92,7 @@ namespace OpenRa.Game
{
if (voicedUnit == null) return;
var mi = voicedUnit.Info as MobileInfo;
var mi = voicedUnit.Info as LegacyMobileInfo;
if (mi == null) return;
var vi = Rules.VoiceInfo[mi.Voice];