[ioquake3] Patch for Typo in botlib/be_ai_weap.c

Zack Middleton zturtleman at gmail.com
Tue Jun 22 22:12:04 PDT 2010


Loading projectile model string would overwrite wrong memory. It is
not used by baseq3/missionpack however.

Index: code/botlib/be_ai_weap.c
===================================================================
--- code/botlib/be_ai_weap.c	(revision 1787)
+++ code/botlib/be_ai_weap.c	(working copy)
@@ -83,7 +83,7 @@
 static fielddef_t projectileinfo_fields[] =
 {
 {"name", PROJECTILE_OFS(name), FT_STRING},					//name of the projectile
-{"model", WEAPON_OFS(model), FT_STRING},						//model of the projectile
+{"model", PROJECTILE_OFS(model), FT_STRING},					//model of the projectile
 {"flags", PROJECTILE_OFS(flags), FT_INT},						//special flags
 {"gravity", PROJECTILE_OFS(gravity), FT_FLOAT},				//amount of
gravity applied to the projectile [0,1]
 {"damage", PROJECTILE_OFS(damage), FT_INT},					//damage of the projectile


More information about the ioquake3 mailing list