game: fix post-restart mall open flow
Some checks failed
build / Linux asan (push) Has been cancelled
build / Linux release (push) Has been cancelled
build / FreeBSD build (push) Has been cancelled

This commit is contained in:
server
2026-04-14 14:27:15 +02:00
parent bc1175eb35
commit cf6deb1895
3 changed files with 17 additions and 13 deletions

View File

@@ -5698,8 +5698,9 @@ void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
}
int iPulse = thecore_pulse();
const int last_safebox_load_time = GetSafeboxLoadTime();
if (iPulse - GetSafeboxLoadTime() < PASSES_PER_SEC(10))
if (last_safebox_load_time > 0 && iPulse - last_safebox_load_time < PASSES_PER_SEC(10))
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<창고> 창고를 닫은지 10초 안에는 열 수 없습니다."));
return;