mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 08:50:48 +00:00
fixes
This commit is contained in:
parent
431ceffdf5
commit
6e66e2dcab
1 changed files with 12 additions and 0 deletions
|
@ -2313,6 +2313,9 @@ void target_alert_parseShaders(/*@shared@*/ gentity_t *ent) {
|
|||
if(token == NULL || token[0] == 0) {
|
||||
break;
|
||||
}
|
||||
if(alertShaders.greenShaders == NULL) {
|
||||
return;
|
||||
}
|
||||
alertShaders.greenShaders[alertShaders.numShaders] = G_NewString(token);
|
||||
alertShaders.numShaders++;
|
||||
if(alertShaders.numShaders > 9) {
|
||||
|
@ -2330,6 +2333,9 @@ void target_alert_parseShaders(/*@shared@*/ gentity_t *ent) {
|
|||
if(token == NULL || token[0] == 0) {
|
||||
break;
|
||||
}
|
||||
if(alertShaders.redShaders == NULL) {
|
||||
return;
|
||||
}
|
||||
alertShaders.redShaders[currentNum] = G_NewString(token);
|
||||
currentNum++;
|
||||
if(currentNum > 9) {
|
||||
|
@ -2354,6 +2360,9 @@ void target_alert_parseShaders(/*@shared@*/ gentity_t *ent) {
|
|||
if(token == NULL || token[0] == 0) {
|
||||
break;
|
||||
}
|
||||
if(alertShaders.blueShaders == NULL) {
|
||||
return;
|
||||
}
|
||||
alertShaders.blueShaders[currentNum] = G_NewString(token);
|
||||
currentNum++;
|
||||
if(currentNum > 9) {
|
||||
|
@ -2378,6 +2387,9 @@ void target_alert_parseShaders(/*@shared@*/ gentity_t *ent) {
|
|||
if(token == NULL || token[0] == 0) {
|
||||
break;
|
||||
}
|
||||
if(alertShaders.yellowShaders == NULL) {
|
||||
return;
|
||||
}
|
||||
alertShaders.yellowShaders[currentNum] = G_NewString(token);
|
||||
currentNum++;
|
||||
if(currentNum > 9) {
|
||||
|
|
Loading…
Reference in a new issue