mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 17:52:08 -10:00
Portej05's preFAST warning fixes.
This commit is contained in:
1 parent
d599cc1d6b
commit
a4e623db23
32 files changed
+104
-100
No files matched your search
+2
-2
@@ -2396,9 +2396,9 @@ ADE_VIRTVAR(Value, l_SEXPVariable, "number/string", "SEXP variable value", "stri
|
||||
sexp_modify_variable(newvalue, svh->idx, false);
|
||||
}
|
||||
|
||||
if(sv->type && SEXP_VARIABLE_NUMBER)
|
||||
if(sv->type & SEXP_VARIABLE_NUMBER)
|
||||
return ade_set_args(L, "i", atoi(sv->text));
|
||||
else if(sv->type && SEXP_VARIABLE_STRING)
|
||||
else if(sv->type & SEXP_VARIABLE_STRING)
|
||||
return ade_set_args(L, "s", sv->text);
|
||||
else
|
||||
return ADE_RETURN_NIL;
|
||||
|
||||
Reference in new issue
Block a user