freebsd-ports/games/cube/files/patch-protos.h
Jan Beich 6047e60d75 - Fix invalid dereferencing of null reference which causes startup
crash for cube_client when built with clang 3.6 + -O1 or higher [1]
- Properly track libenet dependency [2]

PR:		197604 [1]
PR:		197605 [2]
Submitted by:	dim [1]
2015-02-20 06:53:37 +00:00

11 lines
550 B
C

--- protos.h.orig 2015-02-14 01:31:41.352230000 +0100
+++ protos.h 2015-02-14 01:39:01.934630000 +0100
@@ -192,7 +192,7 @@
// rendermd2
extern void rendermodel(char *mdl, int frame, int range, int tex, float rad, float x, float y, float z, float yaw, float pitch, bool teammate, float scale, float speed, int snap = 0, int basetime = 0);
-extern mapmodelinfo &getmminfo(int i);
+extern mapmodelinfo *getmminfo(int i);
// server
extern void initserver(bool dedicated, int uprate, char *sdesc, char *ip, char *master, char *passwd, int maxcl);