1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-15 13:33:36 +02:00

Fix player coloring

This commit is contained in:
Dydzio 2023-08-21 17:08:15 +02:00
parent b73f9325ad
commit 28fe28adf5

View File

@ -17,6 +17,7 @@
#include "../widgets/Images.h"
#include "CMessage.h"
#include "render/Canvas.h"
#include "CPlayerInterface.h"
CHeroBackpackWindow::CHeroBackpackWindow(const CGHeroInstance * hero)
: CWindowObject((EOptions)0)
@ -41,5 +42,5 @@ CHeroBackpackWindow::CHeroBackpackWindow(const CGHeroInstance * hero)
void CHeroBackpackWindow::showAll(Canvas &to)
{
CIntObject::showAll(to);
CMessage::drawBorder(PlayerColor(1), to.getInternalSurface(), pos.w+28, pos.h+29, pos.x-14, pos.y-15);
CMessage::drawBorder(PlayerColor(LOCPLINT->playerID), to.getInternalSurface(), pos.w+28, pos.h+29, pos.x-14, pos.y-15);
}