mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 07:59:18 +02:00
audio subsystem replacement: openal audio renderer and buffer class, removed deprecated files
This commit is contained in:
@@ -105,7 +105,7 @@ material_manager::create( std::string const &Filename, bool const Loadnow ) {
|
||||
|
||||
// try to locate requested material in the databank
|
||||
auto const databanklookup = find_in_databank( filename );
|
||||
if( databanklookup != npos ) {
|
||||
if( databanklookup != null_handle ) {
|
||||
return databanklookup;
|
||||
}
|
||||
// if this fails, try to look for it on disk
|
||||
@@ -149,7 +149,7 @@ material_manager::find_in_databank( std::string const &Materialname ) const {
|
||||
return (
|
||||
lookup != m_materialmappings.end() ?
|
||||
lookup->second :
|
||||
npos );
|
||||
null_handle );
|
||||
}
|
||||
|
||||
// checks whether specified file exists.
|
||||
|
||||
Reference in New Issue
Block a user