mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-04 02:54:08 +02:00
nix ci
This commit is contained in:
parent
35ef379950
commit
0850bb8dbd
13 changed files with 946 additions and 55 deletions
|
|
@ -136,7 +136,7 @@ impl<'a> Handle<'a, TextureData> {
|
|||
pub fn name(&self) -> &'a str {
|
||||
let start = self.bsp.texture_string_tables[self.name_string_table_id as usize] as usize;
|
||||
let part = &self.bsp.texture_string_data[start..];
|
||||
if let Some((s, _)) = part.split_once("\0") {
|
||||
if let Some((s, _)) = part.split_once('\0') {
|
||||
s
|
||||
} else {
|
||||
part
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue