]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
fix errors and warnings in MSVC when compiling as C++
[xonotic/darkplaces.git] / model_shared.c
index 3705359b2bbf34ece305aebd3cc6ff41a2f000f0..74995181b92e171fcf0c9e1d15205671a2c9c78a 100644 (file)
@@ -230,7 +230,7 @@ int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_parsegroups
                        if (!COM_ParseToken_Simple(&bufptr, true, false))
                                break;
                        if (strcmp(com_token, "\n"))
-                               loop = atoi(com_token);
+                               loop = atoi(com_token) != 0;
                        else
                                loop = true;
                }