v0.4.2: fixed two crash bugs caused by recent changes
This commit is contained in:
committed by
Evan Debenham
parent
a29c274484
commit
1461003683
@@ -259,7 +259,7 @@ public class Wandmaker extends NPC {
|
||||
if (setRoom( rooms )){
|
||||
Wandmaker npc = new Wandmaker();
|
||||
do {
|
||||
npc.pos = Dungeon.level.pointToCell(room.random());
|
||||
npc.pos = level.pointToCell(room.random());
|
||||
} while (level.map[npc.pos] == Terrain.ENTRANCE || level.map[npc.pos] == Terrain.SIGN);
|
||||
level.mobs.add( npc );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user