diff --git a/Aquaria/ScriptInterface.cpp b/Aquaria/ScriptInterface.cpp index 0c22e78..228da1d 100644 --- a/Aquaria/ScriptInterface.cpp +++ b/Aquaria/ScriptInterface.cpp @@ -499,7 +499,7 @@ Entity *entity(lua_State *L, int slot = 1) ENSURE_TYPE(ent, SCO_ENTITY); if (!ent) { - scriptError("Entity Invalid Pointer"); + scriptDebug(L, "Entity Invalid Pointer"); } return ent; } @@ -519,7 +519,7 @@ Bone *bone(lua_State *L, int slot = 1) ENSURE_TYPE(b, SCO_BONE); if (!b) { - scriptError("Bone Invalid Pointer"); + scriptDebug(L, "Bone Invalid Pointer"); } return b; } diff --git a/BBGE/SoundManager.cpp b/BBGE/SoundManager.cpp index d73b9f2..94bbf7c 100644 --- a/BBGE/SoundManager.cpp +++ b/BBGE/SoundManager.cpp @@ -1546,7 +1546,7 @@ Buffer SoundManager::loadSoundIntoBank(const std::string &filename, const std::s } int loc = f.find_last_of('/'); - int loc2 = f.find('.'); + int loc2 = f.rfind('.'); if (loc != std::string::npos && loc2 != std::string::npos) { name = f.substr(loc+1, loc2-(loc+1));