summaryrefslogtreecommitdiffstats
path: root/src/CBot/CBotStack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CBot/CBotStack.cpp')
-rw-r--r--src/CBot/CBotStack.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/CBot/CBotStack.cpp b/src/CBot/CBotStack.cpp
index b97c2fd..b5aaba0 100644
--- a/src/CBot/CBotStack.cpp
+++ b/src/CBot/CBotStack.cpp
@@ -53,7 +53,8 @@ CBotStack* CBotStack::FirstStack()
CBotStack* pp = p;
pp += MAXSTACK;
- for ( int i = 0 ; i< 10 ; i++ )
+ int i;
+ for ( i = 0 ; i< 10 ; i++ )
{
pp->m_bOver = TRUE;
pp ++;
@@ -75,12 +76,12 @@ CBotStack* CBotStack::FirstStack()
CBotStack::CBotStack(CBotStack* ppapa)
{
// constructeur doit exister, sinon le destructeur n'est jamais appelé !
- __asm int 3;
+ ASM_TRAP();
}
CBotStack::~CBotStack()
{
- __asm int 3; // utiliser Delete() à la place
+ ASM_TRAP(); // utiliser Delete() à la place
}
void CBotStack::Delete()
@@ -696,7 +697,7 @@ void CBotStack::AddVar(CBotVar* pVar)
*pp = pVar; // ajoute à la suite
#ifdef _DEBUG
- if ( pVar->GivUniqNum() == 0 ) __asm int 3;
+ if ( pVar->GivUniqNum() == 0 ) ASM_TRAP();
#endif
}
@@ -1094,7 +1095,7 @@ BOOL CBotVar::RestoreState(FILE* pf, CBotVar* &pVar)
}
break;
default:
- __asm int 3;
+ ASM_TRAP();
}
if ( pPrev != NULL ) pPrev->m_next = pNew;
@@ -1391,7 +1392,7 @@ void CBotCStack::AddVar(CBotVar* pVar)
*pp = pVar; // ajoute à la suite
#ifdef _DEBUG
- if ( pVar->GivUniqNum() == 0 ) __asm int 3;
+ if ( pVar->GivUniqNum() == 0 ) ASM_TRAP();
#endif
}