From 4989c173bd19fbda487d0c4491157c5a9d51c4e6 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 12 Dec 2011 23:18:15 +0000 Subject: [PATCH] Fix out-of-bounds access in tile selector code in astub.c git-svn-id: https://svn.eduke32.com/eduke32@2177 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index e69ba2402..9e0f6e9a7 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -3333,7 +3333,7 @@ static int32_t m32gettile(int32_t idInitialTile) { temp = i; - while (localartfreq[temp]= 0) + while (temp >= 0 && localartfreq[temp]