From a20e1437d83486b3d3393593618daf3d8ffda604 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 22:21:39 +0000 Subject: [PATCH] Decompile fn_04385 (CWorldViewMgr::SelectCurrentWorld) Batch #13829 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_04385 CWorldViewMgr::SelectCurrentWorld: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/WorldView/WorldViewData.cpp | 4 ++-- Source/Contents/WorldView/WorldViewData.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contents/WorldView/WorldViewData.cpp b/Source/Contents/WorldView/WorldViewData.cpp index d77865c29..5c7a661f9 100644 --- a/Source/Contents/WorldView/WorldViewData.cpp +++ b/Source/Contents/WorldView/WorldViewData.cpp @@ -497,8 +497,8 @@ int CWorldViewMgr::MarkCount() { // OFFSET: 0x00617290 // FUNCTION: fn_04385 -void CWorldViewMgr::SelectCurrentWorld() { - this->currentWorld = this->FindWorld(-1); +int CWorldViewMgr::SelectCurrentWorld() { + return this->currentWorld = this->FindWorld(-1); } // OFFSET: 0x006172E0 diff --git a/Source/Contents/WorldView/WorldViewData.h b/Source/Contents/WorldView/WorldViewData.h index 52d44fc8f..a8affa134 100644 --- a/Source/Contents/WorldView/WorldViewData.h +++ b/Source/Contents/WorldView/WorldViewData.h @@ -109,7 +109,7 @@ public: WorldViewRecord* MarkAt(unsigned int index, bool currentWorldOnly); int* MarkAreaAt(unsigned int index, bool currentWorldOnly); int MarkCount(); - void SelectCurrentWorld(); + int SelectCurrentWorld(); bool AddLevel(const char* name, int level); void ClearLevels(); int* LevelAreaAt(int& kind, unsigned int index, bool currentWorldOnly);