diff options
Diffstat (limited to 'src/Entities/Entity.h')
-rw-r--r-- | src/Entities/Entity.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 282e8368a..594acdd89 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -33,10 +33,12 @@ #define GET_AND_VERIFY_CURRENT_CHUNK(ChunkVarName, X, Z) \ cChunk * ChunkVarName = a_Chunk.GetNeighborChunk(X, Z); \ - if ((ChunkVarName == nullptr) || !ChunkVarName->IsValid()) \ - { \ - return; \ - } + do { \ + if ((ChunkVarName == nullptr) || !ChunkVarName->IsValid()) \ + { \ + return; \ + } \ + } while (false) |