From 8cbada19cf33a7cfe4fc63de4544e0e55e9ef506 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 30 Mar 2019 19:36:25 +0000 Subject: [PATCH] Fix crash in editor tile selector git-svn-id: https://svn.eduke32.com/eduke32@7465 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/tiles.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/build/src/tiles.cpp b/source/build/src/tiles.cpp index 534401505..7b4203a29 100644 --- a/source/build/src/tiles.cpp +++ b/source/build/src/tiles.cpp @@ -658,7 +658,9 @@ void tileLoadData(int16_t tilenume, int32_t dasiz, char *buffer) if (!waloff[owner]) tileLoad(owner); - tileMaybeRotate(tilenume); + if (waloff[tilenume]) + tileMaybeRotate(tilenume); + return; }