aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorMax Horn2002-11-19 13:44:28 +0000
committerMax Horn2002-11-19 13:44:28 +0000
commitd5d5cf2b6dfc1d4de2a7d7d1745e1a51bf38eb9f (patch)
tree2da6793eaa45e899fc7d66d3bf872a09257b2bb4 /backends/fs
parent955fed1fda27e6f65e9c56668b96ffffebdf1533 (diff)
downloadscummvm-rg350-d5d5cf2b6dfc1d4de2a7d7d1745e1a51bf38eb9f.tar.gz
scummvm-rg350-d5d5cf2b6dfc1d4de2a7d7d1745e1a51bf38eb9f.tar.bz2
scummvm-rg350-d5d5cf2b6dfc1d4de2a7d7d1745e1a51bf38eb9f.zip
fixed parent() for root node
svn-id: r5620
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/morphos/abox-fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/morphos/abox-fs.cpp b/backends/fs/morphos/abox-fs.cpp
index 8b75f582a0..6cc53a7b54 100644
--- a/backends/fs/morphos/abox-fs.cpp
+++ b/backends/fs/morphos/abox-fs.cpp
@@ -204,7 +204,7 @@ FilesystemNode *ABoxFilesystemNode::parent() const
if (_lock == NULL)
/* Parent of the root is the root itself */
- node = const_cast<ABoxFilesystemNode*>(this);
+ node = clone();
else
{
BPTR parent_lock = ParentDir(_lock);