mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
duh
This commit is contained in:
parent
8e0ad3ea93
commit
b39214bf06
@ -24,7 +24,11 @@ INLINE bool AudioPool::has_sound(const string& filename) {
|
||||
// return a valid AudioSound pointer.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE bool AudioPool::verify_sound(const string& filename) {
|
||||
return load_sound(filename) != (AudioSound*)0L;
|
||||
AudioSound* foo = load_sound(filename);
|
||||
bool ret = foo != (AudioSound*)0L;
|
||||
if (ret)
|
||||
delete foo;
|
||||
return ret;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user