summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/resource.cpp4
-rw-r--r--src/resources/resourcemanager.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/resource.cpp b/src/resources/resource.cpp
index 6b4a554f..a1e5c1dc 100644
--- a/src/resources/resource.cpp
+++ b/src/resources/resource.cpp
@@ -25,7 +25,7 @@
Resource::Resource():
referenceCount(0)
-{
+{
}
bool Resource::isLoaded() const
@@ -49,7 +49,7 @@ bool Resource::decRef()
--referenceCount;
if (!referenceCount) {
- delete this;
+ //delete this;
return true;
}
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 051f047c..0abc10eb 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -210,8 +210,8 @@ void ResourceManager::deleteInstance()
void ResourceManager::searchAndAddZipFiles()
{
// Add the main data directory to our PhysicsFS search path
- PHYSFS_addToSearchPath(TMW_DATADIR "data", 1);
PHYSFS_addToSearchPath("data", 1);
+ PHYSFS_addToSearchPath(TMW_DATADIR "data", 1);
#ifdef _WIN32
// Define the path in which to search