summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <tristan@gentoo.org>2008-02-15 22:50:02 +0000
committerTristan Heaven <tristan@gentoo.org>2008-02-15 22:50:02 +0000
commit91a70ba8e655ed51f485857949c97ad0c9b4bf84 (patch)
tree867f7266053fb07bce3617dace77f2b81c8db382 /games-sports/trophy/files/trophy-1.1.5-display-segv.patch
parentFilter CFLAGS (diff)
downloadhistorical-91a70ba8e655ed51f485857949c97ad0c9b4bf84.tar.gz
historical-91a70ba8e655ed51f485857949c97ad0c9b4bf84.tar.bz2
historical-91a70ba8e655ed51f485857949c97ad0c9b4bf84.zip
Version bump, bug #181743
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-sports/trophy/files/trophy-1.1.5-display-segv.patch')
-rw-r--r--games-sports/trophy/files/trophy-1.1.5-display-segv.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/games-sports/trophy/files/trophy-1.1.5-display-segv.patch b/games-sports/trophy/files/trophy-1.1.5-display-segv.patch
new file mode 100644
index 000000000000..83860d229ec3
--- /dev/null
+++ b/games-sports/trophy/files/trophy-1.1.5-display-segv.patch
@@ -0,0 +1,11 @@
+--- src/caplayer.cpp.old 2007-08-30 02:52:11.000000000 +0200
++++ src/caplayer.cpp 2007-08-30 02:52:58.000000000 +0200
+@@ -914,6 +914,8 @@
+ void
+ CAPlayer::display( int offsetX, int offsetY )
+ {
++ if (frame >= CA_FPR)
++ frame = CA_FPR - 1;
+ sprite[frame]->draw ( (int)(x+offsetX - sprite[ frame ]->get_width()/2),
+ (int)(y+offsetY - sprite[ frame ]->get_height()/2) );
+