summaryrefslogtreecommitdiff
path: root/Constructions.cpp
diff options
context:
space:
mode:
authorJonas Ask2009-11-10 00:25:56 +0000
committerJonas Ask2009-11-10 00:25:56 +0000
commit038d045f19146776b886edbc23f88aa1f0c9e6a7 (patch)
tree0e6c712f8264354d627888551132654e06619ae4 /Constructions.cpp
parent8e398f4bc4ad2ff2cced52a0b9209d1a9a667c78 (diff)
downloadstonesense-038d045f19146776b886edbc23f88aa1f0c9e6a7.tar.gz
stonesense-038d045f19146776b886edbc23f88aa1f0c9e6a7.tar.bz2
stonesense-038d045f19146776b886edbc23f88aa1f0c9e6a7.tar.xz
Fixed tiny bug in where the last shown constructed wall would not show up with correct material
Diffstat (limited to 'Constructions.cpp')
-rw-r--r--Constructions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Constructions.cpp b/Constructions.cpp
index 407796d..7dafe94 100644
--- a/Constructions.cpp
+++ b/Constructions.cpp
@@ -11,7 +11,7 @@ void changeConstructionMaterials(WorldSegment* segment, Block* b, vector<t_const
t_construction* construct = 0;
i = (uint32_t) allConstructions->size();
if(i <= 0) return;
- while(--i){
+ while(--i >= 0){
c = &(*allConstructions)[i];
if(c->x == b->x && c->y == b->y && c->z == b->z ){
construct = c;