aboutsummaryrefslogtreecommitdiff
path: root/src/crnonpl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crnonpl.cc')
-rw-r--r--src/crnonpl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crnonpl.cc b/src/crnonpl.cc
index 3d43012..b05a5e5 100644
--- a/src/crnonpl.cc
+++ b/src/crnonpl.cc
@@ -1747,7 +1747,7 @@ void TNPC::IdleStimulus(void){
return;
}
- bool FoundDest = false;
+ bool DestFound = false;
int DestX, DestY, DestZ;
for(int i = 0; i < 10; i += 1){
DestX = this->posx;
@@ -1761,12 +1761,12 @@ void TNPC::IdleStimulus(void){
}
if(this->MovePossible(DestX, DestY, DestZ, true, false)){
- FoundDest = true;
+ DestFound = true;
break;
}
}
- if(FoundDest){
+ if(DestFound){
try{
this->ToDoGo(DestX, DestY, DestZ, true, INT_MAX);
this->ToDoWait(2000);