summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/File.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-25 20:06:37 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-25 20:06:37 +0100
commit24d3d5dac40562f22a43eb9934c90165ace92a35 (patch)
tree43f641312f850d0123f0d86a6a685f4e5ac6ffc9 /source/OSSupport/File.cpp
parentMoved the Speed member into cEntity class instead of its descendants. (diff)
downloadcuberite-24d3d5dac40562f22a43eb9934c90165ace92a35.tar
cuberite-24d3d5dac40562f22a43eb9934c90165ace92a35.tar.gz
cuberite-24d3d5dac40562f22a43eb9934c90165ace92a35.tar.bz2
cuberite-24d3d5dac40562f22a43eb9934c90165ace92a35.tar.lz
cuberite-24d3d5dac40562f22a43eb9934c90165ace92a35.tar.xz
cuberite-24d3d5dac40562f22a43eb9934c90165ace92a35.tar.zst
cuberite-24d3d5dac40562f22a43eb9934c90165ace92a35.zip
Diffstat (limited to 'source/OSSupport/File.cpp')
-rw-r--r--source/OSSupport/File.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/OSSupport/File.cpp b/source/OSSupport/File.cpp
index 15a37a36f..bd2670217 100644
--- a/source/OSSupport/File.cpp
+++ b/source/OSSupport/File.cpp
@@ -94,10 +94,9 @@ bool cFile::Open(const AString & iFileName, eMode iMode)
void cFile::Close(void)
{
- ASSERT(IsOpen()); // You should not close file objects that don't have an open file.
-
if (!IsOpen())
{
+ // Closing an unopened file is a legal nop
return;
}