[colobot] 173/377: Fixed ** CBot operator

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 214e95c0b9cc5a8af9c73f125eca98a0a071d765
Author: krzys-h <krzys_h at interia.pl>
Date:   Tue Dec 22 16:06:55 2015 +0100

    Fixed ** CBot operator
---
 src/CBot/CBotVar/CBotVarInt.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/CBot/CBotVar/CBotVarInt.cpp b/src/CBot/CBotVar/CBotVarInt.cpp
index 4437386..b3fad7a 100644
--- a/src/CBot/CBotVar/CBotVarInt.cpp
+++ b/src/CBot/CBotVar/CBotVarInt.cpp
@@ -126,7 +126,7 @@ void CBotVarInt::Mul(CBotVar* left, CBotVar* right)
 ////////////////////////////////////////////////////////////////////////////////
 void CBotVarInt::Power(CBotVar* left, CBotVar* right)
 {
-    m_val = static_cast<int>( pow( static_cast<double>( left->GetValInt()) , static_cast<double>( left->GetValInt()) ));
+    m_val = static_cast<int>( pow( static_cast<double>(left->GetValInt()) , static_cast<double>(right->GetValInt()) ));
     m_binit = CBotVar::InitType::DEF;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list