summaryrefslogtreecommitdiffstats
path: root/src/UI
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-07 16:00:19 +0100
committermadmaxoft <github@xoft.cz>2014-01-07 17:07:49 +0100
commit39a1bcdea0a5897a7090748529e3b903918882ec (patch)
treebc8e5421a6365b56746284b0eb2732e7a4fca333 /src/UI
parentLuaState can push strings with embedded NULs. (diff)
downloadcuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar
cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.gz
cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.bz2
cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.lz
cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.xz
cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.zst
cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.zip
Diffstat (limited to 'src/UI')
-rw-r--r--src/UI/SlotArea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index 61e432665..a721e6b7e 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -491,7 +491,7 @@ void cSlotAreaCrafting::ShiftClickedResult(cPlayer & a_Player)
return;
}
cItem * PlayerSlots = GetPlayerSlots(a_Player) + 1;
- do
+ for (;;)
{
// Try distributing the result. If it fails, bail out:
cItem ResultCopy(Result);
@@ -517,7 +517,7 @@ void cSlotAreaCrafting::ShiftClickedResult(cPlayer & a_Player)
// The recipe has changed, bail out
return;
}
- } while (true);
+ }
}