From afa97376eb63c9f4eade8abc628e64b75d1044a8 Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Sun, 25 Jul 2021 23:17:08 -0700 Subject: [PATCH] Autoplay: fix types for prairie::enter check --- devmods/autoplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devmods/autoplay.cpp b/devmods/autoplay.cpp index 2c595431..b68dd6fd 100644 --- a/devmods/autoplay.cpp +++ b/devmods/autoplay.cpp @@ -9,7 +9,7 @@ namespace hr { bool doAutoplay; eLand autoplayLand; -namespace prairie { extern long long enter; } +namespace prairie { extern cell *enter; } bool sameland(eLand ll, eLand ln) { if(ln == laBarrier || ln == laOceanWall) @@ -210,7 +210,7 @@ void noteUnusualSituations() bool isAnythingWrong() { - long long ienter = (long long) prairie::enter; + uintptr_t ienter = (uintptr_t) prairie::enter; if(ienter && ienter < 100000) { printf("ERROR: prairie::enter has incorrect value\n"); return true;