silly asserts

This commit is contained in:
darkrose 2015-07-25 19:46:08 +10:00
parent fb92fdecf1
commit cb866f6407
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ u32 TextureSource::getTextureId(const std::string &name)
result = result_queue.pop_front(1000);
// Check that at least something worked OK
assert(result.key == name);
if (result.key != name)
return 0;
return result.item;
}catch(ItemNotFoundException &e) {