diff options
Diffstat (limited to 'stockton-levels/src/q3/light_vols.rs')
-rw-r--r-- | stockton-levels/src/q3/light_vols.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stockton-levels/src/q3/light_vols.rs b/stockton-levels/src/q3/light_vols.rs index 202c375..d5bbadf 100644 --- a/stockton-levels/src/q3/light_vols.rs +++ b/stockton-levels/src/q3/light_vols.rs @@ -20,6 +20,7 @@ use std::convert::TryInto; use crate::types::{Result, ParseError, RGB}; use crate::traits::light_vols::*; use super::Q3BSPFile; +use crate::coords::CoordSystem; const VOL_LENGTH: usize = (3 * 2) + 2; @@ -43,7 +44,7 @@ pub fn from_data(data: &[u8]) -> Result<Box<[LightVol]>> { } -impl HasLightVols for Q3BSPFile { +impl<T: CoordSystem> HasLightVols for Q3BSPFile<T> { type LightVolsIter<'a> = std::slice::Iter<'a, LightVol>; fn lightvols_iter<'a>(&'a self) -> Self::LightVolsIter<'a> { |