[iortcw] 31/89: SP: Add a couple of missing token checks
Simon McVittie
smcv at debian.org
Fri Sep 8 10:44:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to tag 1.51b
in repository iortcw.
commit 2fa7c3126d065f3bf2598a5b1aa0ce7b0fce40a4
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Sat Jun 24 11:21:52 2017 -0400
SP: Add a couple of missing token checks
Missed these ones in 4aad7c6
---
SP/code/game/bg_animation.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/SP/code/game/bg_animation.c b/SP/code/game/bg_animation.c
index b45d02a..9a9b117 100644
--- a/SP/code/game/bg_animation.c
+++ b/SP/code/game/bg_animation.c
@@ -1282,7 +1282,7 @@ void BG_AnimParseAnimScript( animModelInfo_t *modelInfo, animScriptData_t *scrip
//----(SA) // RF mod
// check for the open bracket
token = COM_ParseExt( &text_p, qtrue );
- if ( !token || Q_stricmp( token, "{" ) ) {
+ if ( !token[0] || Q_stricmp( token, "{" ) ) {
BG_AnimParseError( "BG_AnimParseAnimScript: expected '{'" );
}
indentLevel++;
@@ -1404,7 +1404,7 @@ void BG_AnimParseAnimScript( animModelInfo_t *modelInfo, animScriptData_t *scrip
//----(SA) // RF mod
// check for the open bracket
token = COM_ParseExt( &text_p, qtrue );
- if ( !token || Q_stricmp( token, "{" ) ) {
+ if ( !token[0] || Q_stricmp( token, "{" ) ) {
BG_AnimParseError( "BG_AnimParseAnimScript: expected '{'" );
}
indentLevel++;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list