mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
Mac OS X 10.6 & More C++03 Support (#68)
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
|
||||
void SoundRepository::add(const std::string& name, SoundDesc& sd)
|
||||
{
|
||||
auto iter = m_repo.find(name);
|
||||
std::map<std::string, std::vector<SoundDesc> >::iterator iter = m_repo.find(name);
|
||||
if (iter == m_repo.end())
|
||||
{
|
||||
std::vector<SoundDesc> sdv;
|
||||
sdv.push_back(sd);
|
||||
m_repo.insert(std::pair<std::string, std::vector<SoundDesc>>(name, sdv));
|
||||
m_repo.insert(std::pair<std::string, std::vector<SoundDesc> >(name, sdv));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -27,7 +27,7 @@ void SoundRepository::add(const std::string& name, SoundDesc& sd)
|
||||
|
||||
bool SoundRepository::get(const std::string& name, SoundDesc& sd)
|
||||
{
|
||||
auto iter = m_repo.find(name);
|
||||
std::map<std::string, std::vector<SoundDesc> >::iterator iter = m_repo.find(name);
|
||||
if (iter == m_repo.end())
|
||||
{
|
||||
printf("Couldn't find a sound with id: %s\n", name.c_str());
|
||||
|
||||
Reference in New Issue
Block a user