[colobot] 70/145: Fix checking parameters in CBotFunction
Didier Raboud
odyx at moszumanska.debian.org
Mon Jul 11 12:56:19 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 e7942962d3b351119fd9beed7b2c1f5ff6ba3392
Author: melex750 <melex750 at users.noreply.github.com>
Date: Tue Apr 19 10:36:06 2016 -0400
Fix checking parameters in CBotFunction
---
src/CBot/CBotInstr/CBotFunction.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/CBot/CBotInstr/CBotFunction.cpp b/src/CBot/CBotInstr/CBotFunction.cpp
index 4c016d3..4c15a41 100644
--- a/src/CBot/CBotInstr/CBotFunction.cpp
+++ b/src/CBot/CBotInstr/CBotFunction.cpp
@@ -840,8 +840,8 @@ bool CBotFunction::CheckParam(CBotDefParam* pParam)
CBotDefParam* pp = m_param;
while ( pp != nullptr && pParam != nullptr )
{
- CBotTypResult type1 = pp->GetType();
- CBotTypResult type2 = pParam->GetType();
+ CBotTypResult type1 = pp->GetTypResult();
+ CBotTypResult type2 = pParam->GetTypResult();
if ( !type1.Compare(type2) ) return false;
pp = pp->GetNext();
pParam = pParam->GetNext();
--
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