summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/render/WaterLevel.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp
index 49fc3a22..6cd3fdad 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -62,7 +62,11 @@ CWaterLevel::Initialise(Const char *pWaterDat)
#ifdef MASTER
int32 hFile = -1;
- while ((hFile = CFileMgr::OpenFile("DATA\\waterpro.dat", "rb")) < 0);
+ do
+ {
+ hFile = CFileMgr::OpenFile("DATA\\waterpro.dat", "rb");
+ }
+ while ( hFile < 0 );
#else
int32 hFile = CFileMgr::OpenFile("DATA\\waterpro.dat", "rb");
#endif